mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 04:06:51 +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.
|
// Prepare to replace the last token in the current accumulator.
|
||||||
accum.pop();
|
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++ ) {
|
for ( var i = 0, l = tokens.length; i < l; i++ ) {
|
||||||
tokenCTX.lastToken = tokenCTX.token;
|
tokenCTX.lastToken = tokenCTX.token;
|
||||||
tokenCTX.token = tokens[i];
|
tokenCTX.token = tokens[i];
|
||||||
|
|
Loading…
Reference in a new issue