Modify ↓
Ticket #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: | |
| Blocking: | Blocked by: |
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.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

http://jsfiddle.net/dmethvin/WXSsp/