-
Notifications
You must be signed in to change notification settings - Fork 246
Open
Milestone
Description
Hi,
it would be nice to manipulate hoverIntent with jQuery's .on syntax which offers namespacing and easy unbinding with .off(). When there would be no listeners left, the bindings should be automatically removed to prevent memory leaks (no need for the manual destruction suggested in #43).
$(selector).on('hoverIntent.namespace' [, selector] , handlerIn, handlerOut);
// or
$(selector).on('hoverIntent.namespace' [, selector] , handlerInOut);
// and then
$(selector).off('hoverIntent.namespace');
// or
$(selector).off('.namespace');It should be possible to hook on jQuery's event system to make it happen. Thank you
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels