Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#14194 closed feature (notabug)

namespace in events

Reported by: oom@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:


I think this would be very useful and can prevent conflict between plugins. Example of how it could work:

var $el = $('#my-element');

$el.on('click', function () {...});

$el.on('mySlide.next', function () {...});
$el.on('mySlide.prev', function () {...});

$el.off('mySlide'); //unbinds all events within this namespace (next and prev)

All the best. Oscar Otero

Change History (2)

comment:1 Changed 10 years ago by dmethvin

Resolution: notabug
Status: newclosed

comment:2 Changed 10 years ago by oom@…

Ops, that's fantastic. Sorry for waste your time.

Note: See TracTickets for help on using tickets.