#14194 closed feature (notabug)
namespace in events
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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
Note: See
TracTickets for help on using
tickets.
We've got this already. http://api.jquery.com/on/#event-names