Index: trunk/extensions/VisualEditor/modules/parser/mediawiki.TokenTransformer.js |
— | — | @@ -150,7 +150,7 @@ |
151 | 151 | // Prepare to replace the last token in the current accumulator. |
152 | 152 | accum.pop(); |
153 | 153 | } |
154 | | - var tokenCTX = TokenContext(undefined, accum, this, undefined); |
| 154 | + var tokenCTX = new TokenContext(undefined, accum, this, undefined); |
155 | 155 | for ( var i = 0, l = tokens.length; i < l; i++ ) { |
156 | 156 | tokenCTX.lastToken = tokenCTX.token; |
157 | 157 | tokenCTX.token = tokens[i]; |