Bug Tracker

Opened 14 years ago

Closed 13 years ago

Last modified 13 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 14 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 14 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 14 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 14 years ago by georgious

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

comment:3 Changed 14 years ago by brandon

Owner: brandon deleted

comment:4 Changed 13 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 13 years ago by Rick Waldron (previous) (diff)

comment:5 Changed 13 years ago by dmethvin

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