aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2011-09-22 11:12:42 -0400
committerRick Waldron <waldron.rick@gmail.com>2011-09-22 11:12:42 -0400
commit737820118b0af9c9e0d077481f0630f0f279a2c8 (patch)
treedf15b9fc56b25deda8563186bcd50b0ff8b4e57b /src
parent7babc7f20393acb44d4fced34fe86fde65f893a0 (diff)
downloadjquery-737820118b0af9c9e0d077481f0630f0f279a2c8.tar.gz
jquery-737820118b0af9c9e0d077481f0630f0f279a2c8.zip
More reference caching
Diffstat (limited to 'src')
-rw-r--r--src/event.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js
index a9bf19706..379dc7906 100644
--- a/src/event.js
+++ b/src/event.js
@@ -413,8 +413,10 @@ jQuery.event = {
// Make a writable jQuery.Event from the native event object
event = jQuery.event.fix( event || window.event );
- if ( jQuery.event.propHooks[ event.type ] ) {
- event = jQuery.event.propHooks[ event.type ]( event );
+ var propHook = jQuery.event.propHooks[ event.type ];
+
+ if ( propHook ) {
+ event = propHook( event );
}
var handlers = ((jQuery._data( this, "events" ) || {})[ event.type ] || []),