[dokuwiki] Javascript events.js replacement

Hello,

I suggest to add the EventManager (EM) javascript class for the events
processing, instead of the current addEvent functions.

It implements the following features:
  * cross-browser events registration/removal
  * unification of the event objects interfaces (i.e. currentTarget
  property, preventDefault/stopPropagation methods for IE)
  * special design to reduce memory leaks in IE, including evens
  removal on the 'unload' event
  * allows to implement custom events (take a look at
  http://debugger.ru/temp/em/3.html, for the simple demo of the
  'nodemovestart', 'nodemove' custom events)
  * implements 'domload' event in the better way, then the current one
  -- it does not use conditional comments and the <script> tag

Event manager is completely compatible to the existing solution,
including keeping the execution context of the currentTarget node --
allows to use 'this' word in the event handlers, pointing to the
currentTarget.

Additionally, patch includes DOM.CSS helpers (used in the older
EventManager release as events extensions) and DOM.CSS singleton
object, simplifying CSS classes manipulations.

You can take the standalone sources from my repository:
http://svn.debugger.ru/wsvn/JS%20libraries/BrowserExtensions/trunk/

--
Best regards,
 Ilya                          

E-mail: ilya@xxxxxxxxxxx
Skype: WingedFox
ICQ: 68202089

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: