by dominicglenn · 13y ago · 0 comments
Doesn't just calling return from an event equate to returning boolean false, which means you are invoking the effects of preventDefault() and stopImmediatePropagation() thus explaining why with return it's faster as the event stops bubbling immediately?
https://github.com/jquery/jquery/blob/a5037cb9e3851b171b49f6...
So returning undefined does NOT stop propagation.
revision 7 http://jsperf.com/always-return-on-jquery-events/7. Just return vs return true (faster).
But as smilekzs points out revision 3 this might not be about the return statement.