Bug Tracker

Modify

Ticket #5373 (closed bug: worksforme)

Opened 4 years ago

Last modified 3 years ago

[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

comment:1 Changed 3 years ago by dmethvin

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

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.