Side navigation
#14194 closed feature (notabug)
Opened July 28, 2013 10:56AM UTC
Closed July 28, 2013 04:02PM UTC
Last modified July 28, 2013 04:40PM UTC
namespace in events
Reported by: | oom@oscarotero.com | 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
We've got this already. http://api.jquery.com/on/#event-names