File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1331
1331
return createMouseEnterLeaveResponder ( uid , eventName , handler ) ;
1332
1332
1333
1333
return function ( event ) {
1334
- var cacheEntry = Event . cache [ uid ] ;
1335
- var element = cacheEntry . element ;
1336
-
1334
+ if ( ! Event . cache ) return ;
1335
+
1336
+ var element = Event . cache [ uid ] . element ;
1337
1337
Event . extend ( event , element ) ;
1338
1338
handler . call ( element , event ) ;
1339
1339
} ;
1340
1340
}
1341
1341
1342
1342
function createResponderForCustomEvent ( uid , eventName , handler ) {
1343
1343
return function ( event ) {
1344
- var cacheEntry = Event . cache [ uid ] , element = cacheEntry . element ;
1344
+ var element = Event . cache [ uid ] . element ;
1345
1345
1346
1346
if ( Object . isUndefined ( event . eventName ) )
1347
1347
return false ;
1356
1356
1357
1357
function createMouseEnterLeaveResponder ( uid , eventName , handler ) {
1358
1358
return function ( event ) {
1359
- var cacheEntry = Event . cache [ uid ] , element = cacheEntry . element ;
1360
-
1359
+ var element = Event . cache [ uid ] . element ;
1360
+
1361
1361
Event . extend ( event , element ) ;
1362
1362
var parent = event . relatedTarget ;
1363
1363
You can’t perform that action at this time.
0 commit comments