mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
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:
parent
04a999f991
commit
cd58340f1c
|
@ -349,7 +349,7 @@
|
|||
// is not a modifier key then we should reset all sequences
|
||||
// that were not matched by this key event
|
||||
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
|
||||
// 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
|
||||
|
|
Loading…
Reference in a new issue