Skip to main content

Bug Tracker

Side navigation

#8777 closed bug (fixed)

Opened April 05, 2011 08:45PM UTC

Closed April 11, 2011 04:14PM UTC

Last modified March 13, 2012 02:45PM UTC

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:
Blocked by: Blocking:
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.

Attachments (0)
Change History (3)

Changed April 05, 2011 08:46PM UTC by rwaldron comment:1

component: unfiledevent
milestone: 1.next1.6
owner: → rwaldron
priority: undecidedblocker
status: newassigned

Changed April 05, 2011 10:16PM UTC by rwaldron comment:2

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

Changed April 11, 2011 04:14PM UTC by john comment:3

resolution: → fixed
status: assignedclosed

Landed.