Bug Tracker

Modify

Ticket #11196 (closed bug: invalid)

Opened 16 months ago

Last modified 16 months ago

die() selector quote type order MUST match original live selector EXACTLY

Reported by: aowie1@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.4
Keywords: Cc:
Blocking: Blocked by:

Description

if you bind a live event to a selector using something like

$("input[name='cancel']").live("click", function(){});

and then try to unbind it with die().. like

$('input[name="cancel"]').die();

it does NOT unbind that original bound event because the quote types are mismatched

Change History

comment:1 Changed 16 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

Yes, as documented:

 http://api.jquery.com/die/

And, also as documented, .live() and .die() are deprecated.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.