Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You want <a href="https://github.com/jquery/jquery/blob/master/src/event.js#L524" rel="noreferrer"><code>jQuery.event.fix</code></a>.</p> <h3><code>new jQuery.Event(nativeEvent)</code></h3> <ul> <li><a href="https://github.com/jquery/jquery/blob/master/src/event.js#L641" rel="noreferrer">Stores <code>nativeEvent</code> as the <code>originalEvent</code> property.</a></li> <li><a href="https://github.com/jquery/jquery/blob/master/src/event.js#L644-647" rel="noreferrer">Handles some bubbling logic.</a></li> <li><a href="https://github.com/jquery/jquery/blob/master/src/event.js#L660" rel="noreferrer">Timestamps the event</a></li> <li><a href="https://github.com/jquery/jquery/blob/master/src/event.js#L663" rel="noreferrer">Marks the event as "jQuery's got this"</a></li> <li><a href="https://github.com/jquery/jquery/blob/master/src/event.js#L675-714" rel="noreferrer">Gives it all the bubbling/default-preventing functions</a>.</li> </ul> <p>Note at this point the event doesn't have any "eventy" properties, just <code>originalEvent</code>, <code>timeStamp</code>, and the bubbling/default-preventing functions.</p> <h3><code>jQuery.event.fix(nativeEvent)</code></h3> <ul> <li><a href="https://github.com/jquery/jquery/blob/master/src/event.js#L535" rel="noreferrer">Does all the above</a></li> <li><a href="https://github.com/jquery/jquery/blob/master/src/event.js#L532" rel="noreferrer">Figures out specific fixes ("fix hook") it will need to apply depending on the event type</a></li> <li><a href="https://github.com/jquery/jquery/blob/master/src/event.js#L537-540" rel="noreferrer">Copies over a default set of properties from <code>nativeEvent</code>, plus specific ones from the fix hook</a></li> <li><a href="https://github.com/jquery/jquery/blob/master/src/event.js#L542-555" rel="noreferrer">Fixes cross-browser issues with the <code>target</code> and <code>metaKey</code> properties</a></li> <li><a href="https://github.com/jquery/jquery/blob/master/src/event.js#L557" rel="noreferrer">Applies specific cross-browser fixes and normalizations for the fix hook</a>.</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload