Skip to main content

Bug Tracker

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

Attachments (0)
Change History (2)

Changed July 28, 2013 04:02PM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

We've got this already. http://api.jquery.com/on/#event-names

Changed July 28, 2013 04:40PM UTC by oom@oscarotero.com comment:2

Ops, that's fantastic.

Sorry for waste your time.