Side navigation
#5331 closed feature (invalid)
Opened October 07, 2009 06:32AM UTC
Closed November 14, 2010 03:10PM UTC
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.
Attachments (0)
Change History (1)
Changed November 14, 2010 03:10PM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
This conflicts with the new click(false) semantics which means to return false from a built-in handler.