Bug Tracker

Changes between Initial Version and Version 4 of Ticket #2655


Ignore:
Timestamp:
Apr 21, 2008, 10:32:46 PM (14 years ago)
Author:
brandon
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2655 – Description

    initial v4  
    22
    33jQuery.event.fix
    4 * The same event object, can't be fixed more than once (it happens when triggering.
     4 * The same event object, can't be fixed more than once (it happens when triggering.
    55
    66jQuery.event.handle
    7 * Removed the {} fallback when calling jQuery.event.fix, event.type is used in the next line, so IF you were to fall on the last case, the next line would alert 'event.type is not defined' seems like the 3rd case can't be reached.
    8 * Avoided the need for Array.prototype.slice.call( arguments, 1 ) and args.unshift().
    9 * Replaced args[0] for event when looping through the handlers, those were 2 array lookups per handler.
    10 * Same for the namespace (parts).
    11 * Simplified the val/ret part, ret is not needed and the code is now shorter.
    12 * The forced call to preventDefault and stopPropagation is only checked and done once, after the loop.
     7 * Removed the {} fallback when calling jQuery.event.fix, event.type is used in the next line, so IF you were to fall on the last case, the next line would alert 'event.type is not defined' seems like the 3rd case can't be reached.
     8 * Avoided the need for Array.prototype.slice.call( arguments, 1 ) and args.unshift().
     9 * Replaced args[0] for event when looping through the handlers, those were 2 array lookups per handler.
     10 * Same for the namespace (parts).
     11 * Simplified the val/ret part, ret is not needed and the code is now shorter.
     12 * The forced call to preventDefault and stopPropagation is only checked and done once, after the loop.