Opened 13 years ago
Closed 12 years ago
#5331 closed feature (invalid)
Disable and enable events
Reported by: | david71rj | Owned by: | brandon |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | event | Version: | 1.3.2 |
Keywords: | bind, unbind, togglebind | Cc: | |
Blocked by: | Blocking: |
Description
Example:
$(this).bind('click', function(){alert(1)}); $(this).toggleBind('click', false); Disable bind, but don't remove completly as "unbind" $(this).toggleBind('click', true); Re-enable bind
In specify function too: $(this).toggleBind('click', methodClick, false); The others linked binds-click continues
Bye.
Note: See
TracTickets for help on using
tickets.
This conflicts with the new click(false) semantics which means to return false from a built-in handler.