Skip to main content

Bug Tracker

Side navigation

#4317 closed bug (worksforme)

Opened March 09, 2009 07:22PM UTC

Closed November 01, 2010 09:10PM UTC

Last modified November 02, 2010 02:06AM UTC

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 (0.8 KB) - added by georgious March 09, 2009 07:24PM UTC.

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

Change History (5)

Changed March 10, 2009 11:18AM UTC by georgious comment:1

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...

Changed March 10, 2009 11:34AM UTC by georgious comment:2

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

Changed June 17, 2009 02:35AM UTC by brandon comment:3

owner: brandon

Changed November 01, 2010 09:10PM UTC by rwaldron comment:4

_comment0: The reported issue no longer exists; However a new bug does: http://jsfiddle.net/rwaldron/6b3fR/4/1288645937400969
keywords: event, die, liveneedsreview
milestone: 1.41.4.4
priority: majorhigh
resolution: → worksforme
status: newclosed

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

Changed November 02, 2010 02:06AM UTC by dmethvin comment:5

keywords: needsreview