Bug Tracker

Modify

Ticket #8777 (closed bug: fixed)

Opened 3 years ago

Last modified 2 years ago

jQuery 1.6: undelegate() accepts custom namespaced events

Reported by: rwaldron Owned by: rwaldron
Priority: blocker Milestone: 1.6
Component: event Version: 1.5.2
Keywords: Cc:
Blocking: Blocked by:

Description

Copied directly from jQuery 1.6 Roadmap:

I noticed that undelegate doesn't seem to work with a custom namespaced event.

If you undelegate('selector', '.namespace') it doesn't work, but if you unbind('.namespace') that same thing, it does.

Here's a fiddle that explains what I expected

 http://jsfiddle.net/matthewlein/7LRmR/

seems like something useful for plugins or widgets that want to delegate.

Change History

comment:1 Changed 3 years ago by rwaldron

  • Owner set to rwaldron
  • Priority changed from undecided to blocker
  • Status changed from new to assigned
  • Component changed from unfiled to event
  • Milestone changed from 1.next to 1.6

comment:2 Changed 3 years ago by rwaldron

First pass at what might be the gnarliest thing ever...  https://github.com/rwldrn/jquery/tree/8777

comment:3 Changed 3 years ago by john

  • Status changed from assigned to closed
  • Resolution set to fixed

Landed.

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.