Removed introduction of global variable

resetSequences was being called in the context of window instead of a contextFactory

Change-Id: I1b9ee25547bd18d59eac4b991ecc813b81f92a4c
This commit is contained in:
Trevor Parscal 2012-11-06 10:52:30 -08:00
parent 04a999f991
commit cd58340f1c

View file

@ -349,7 +349,7 @@
// is not a modifier key then we should reset all sequences // is not a modifier key then we should reset all sequences
// that were not matched by this key event // that were not matched by this key event
if ( e.type === cf.isInsideSequence && !isModifier( character ) ) { if ( e.type === cf.isInsideSequence && !isModifier( character ) ) {
cf.resetSequences(doNotReset); cf.resetSequences( doNotReset );
} }
} }
@ -534,7 +534,7 @@
// weird race condition if a sequence ends with the key // weird race condition if a sequence ends with the key
// another sequence begins with // another sequence begins with
setTimeout( cf.resetSequences, 10 ); setTimeout( ve.bind( cf.resetSequences, cf ), 10 );
} }
// start off by adding a sequence level record for this combo // start off by adding a sequence level record for this combo