https://bugzilla.wikimedia.org/show_bug.cgi?id=23580
--- Comment #4 from Michael Dale <d...@ucsc.edu> 2010-05-18 22:51:20 UTC --- It would probably be more ideal to use jQuery "bind" event system somthing like: for the "add hook" you would use something like; $j( mw ).bind( eventName , function( event, param1, param2 ){ // stuff to do at eventName time }); Then the run hook use : $j( mw ).trigger( eventName, [ array, of, params ] ); A bind system is more general and can be applied to interface objects .. rather than just all in a root name space. This is already used in the usability extension and mwEmbed makes extensive use of this binding type system in conjunction with the scriptLoader it enables modules to conditionally extend each other while preserving a single server request for all script and css resources. For example the timedText module conditionally extends the embedPlayer request with its timedText stuff, the set of dependent libraries is dynamically built out binded to object specific events. i.e: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/TimedMediaHandler/TimedText/loader.js?view=markup -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l