Opened 13 years ago
Closed 12 years ago
#5373 closed bug (worksforme)
[BUG] events: live + namespace
Reported by: | cyburk | Owned by: | brandon |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | event | Version: | 1.3.2 |
Keywords: | live namespace | Cc: | |
Blocked by: | Blocking: |
Description
when the "live" method is used to bind events with namespaces, all events under the same namespace will be triggered, instead of the specified event.
jQuery("div#id") .live("ns.load", function(){alert("ns.load");}) .live("ns.unload", function(){alert("ns.unload");}) .live("ns.whatever", function(){alert("ns.whatever");}); jQuery("div#id").trigger("ns.load");
This does not happen using the "bind" method.
Note: See
TracTickets for help on using
tickets.
http://jsfiddle.net/dmethvin/WXSsp/