You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With jQuery, returning false within a handler effectively calls event.preventDefault() and event.stopPropagation(). See the fiddle showing this behavior.
The same is true for Gator:
As an added convenience if you return false in your callback it is a shortcut for calling e.preventDefault() followed by e.stopPropagation().
However, it seems ftdomdelegate performs the equivalent of a preventDefault() and stopImmediatePropagation() when a handler returns false, which prevents other handlers at the same level in the DOM from executing. See the fiddle showing this behavior.
This seems non-standard given older libraries have established a consistent behavior, and I feel it should be changed to match.
With jQuery, returning
falsewithin a handler effectively callsevent.preventDefault()andevent.stopPropagation(). See the fiddle showing this behavior.The same is true for Gator:
However, it seems ftdomdelegate performs the equivalent of a
preventDefault()andstopImmediatePropagation()when a handler returnsfalse, which prevents other handlers at the same level in the DOM from executing. See the fiddle showing this behavior.This seems non-standard given older libraries have established a consistent behavior, and I feel it should be changed to match.