Bug Tracker

Modify

Ticket #3665 (closed feature: fixed)

Opened 5 years ago

Last modified 4 years ago

Pass the namespace to $.event.special.foo.setup

Reported by: flesler Owned by: flesler
Priority: major Milestone: 1.3
Component: event Version: 1.2.6
Keywords: event special namespace Cc: john
Blocking: Blocked by:

Description

This would allow something like this:

$('#foo').bind('livequery.click',function(){});
$('#foo').bind('livequery.mouseover',function(){});

In this case, we use the event as namespace, and the namespace as event. We let one function handle a whole set of events.

Maybe there's a better solution ? like allowing both the event type and the ns to match a $.event.special name ?

Change History

comment:1 Changed 4 years ago by flesler

  • Cc john added
  • Status changed from new to closed
  • Resolution set to fixed

Added at [5990] by John.

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.