Bug Tracker

Opened 10 years ago

Closed 9 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.

Change History (1)

comment:1 Changed 9 years ago by dmethvin

Resolution: invalid
Status: newclosed

This conflicts with the new click(false) semantics which means to return false from a built-in handler.

Note: See TracTickets for help on using tickets.