mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Follow-up to r105859: Add missing new.
This commit is contained in:
parent
9ebce5839a
commit
89c5e0cafb
|
@ -150,7 +150,7 @@ TokenTransformer.prototype.transformTokens = function ( tokens, accum ) {
|
|||
// Prepare to replace the last token in the current accumulator.
|
||||
accum.pop();
|
||||
}
|
||||
var tokenCTX = TokenContext(undefined, accum, this, undefined);
|
||||
var tokenCTX = new TokenContext(undefined, accum, this, undefined);
|
||||
for ( var i = 0, l = tokens.length; i < l; i++ ) {
|
||||
tokenCTX.lastToken = tokenCTX.token;
|
||||
tokenCTX.token = tokens[i];
|
||||
|
|
Loading…
Reference in a new issue