Page MenuHomePhabricator

r59935 interferes with live event binding
Closed, ResolvedPublic

Description

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.


Version: unspecified
Severity: normal

Attached:

Details

Reference
bz21850

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:53 PM
bzimport set Reference to bz21850.

Forgot to mention, I was testing on Firefox 3.5.5 on Fedora 11

r59935 added the inherit plugin, which presumably broke .live(), but it was removed in r61499