Bug Tracker

Opened 11 years ago

Closed 9 years ago

Last modified 9 years ago

#4317 closed bug (worksforme)

die() kills events on similar elements

Reported by: georgious Owned by:
Priority: high Milestone: 1.4.4
Component: event Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

Description

If you use $('a').live('click', somefunction) and then $('.someClass a').die('click') the latter will kill the event of all a-s which were bound at first.

Attachments (1)

index.html (834 bytes) - added by georgious 11 years ago.
Simple html - jquery.min.js is not included, just add it next to the file.

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by georgious

Attachment: index.html added

Simple html - jquery.min.js is not included, just add it next to the file.

comment:1 Changed 11 years ago by georgious

changed

jQuery(document).bind( liveConvert(type, this.selector), this.selector, proxy );

with

jQuery(this).bind( liveConvert(type, this.selector), this.selector, proxy );

on line 2978 and that seemed to fix the issue. Did the same for the die() method. Not sure whether that is a clean fix, though...

comment:2 Changed 11 years ago by georgious

erm.. this actually doesn't solve the issue at all - it breaks live() and die()..

comment:3 Changed 10 years ago by brandon

Owner: brandon deleted

comment:4 Changed 9 years ago by Rick Waldron

Keywords: needsreview added; event die live removed
Milestone: 1.41.4.4
Priority: majorhigh
Resolution: worksforme
Status: newclosed

The reported issue no longer exists; http://jsfiddle.net/rwaldron/6b3fR/4/

Last edited 9 years ago by Rick Waldron (previous) (diff)

comment:5 Changed 9 years ago by dmethvin

Keywords: needsreview removed
Note: See TracTickets for help on using tickets.