https://bugzilla.wikimedia.org/show_bug.cgi?id=21850
Summary: r59935 interferes with live event binding
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: UsabilityInitiative
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=6881)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=6881)
Test code
Something in r59935 is screwing with binding events to elements with live(),
(I've only tested the click event though). I've narrowed it down fairly
definitively to r59935, r59934 works as expected. For live-bound click events
on single elements, it causes them to run when clicking anywhere on the page,
even if the element isn't visible. This behavior is also evident on HEAD
(r60039 as of now)
I've attached some short test code that can be added as a user script. It adds
a section to the toolbar, which adds a single dialog. Clicking the "click" link
in the dialog should trigger an alert message, but as of r59935, it triggers
when clicking anywhere outside the textarea, even if the dialog isn't open.
--
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l