https://bugzilla.wikimedia.org/show_bug.cgi?id=44128
Web browser: ---
Bug ID: 44128
Summary: Don't bind events to $( window ) object
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: MobileFrontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Currently we bind all our application events to the $( window ) object.
Instead, we should create a wrapper around the jQuery events mechanism and bind
events to a separate JavaScript object as described in the following blog
posts:
http://clock.co.uk/tech-blogs/use-jquery-events-on-plain-javascript-objects
http://james.padolsey.com/javascript/jquery-eventemitter/
This will allow us to drop the "mw-mf-" prefix from event names as there will
be no possibility of other external JavaScript code binding events to the same
object.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l