Index: trunk/extensions/VisualEditor/modules/parser/ext.core.QuoteTransformer.js |
— | — | @@ -26,15 +26,9 @@ |
27 | 27 | }, 'tag', 'QUOTE' ); |
28 | 28 | }; |
29 | 29 | |
30 | | -// Extract a copy of the token context with the info we need |
31 | | -// XXX: Should probably use a generic shallow object copy |
| 30 | +// Make a copy of the token context |
32 | 31 | QuoteTransformer.prototype.ctx = function ( tokenCTX ) { |
33 | | - return { |
34 | | - accum: tokenCTX.accum, |
35 | | - token: tokenCTX.token, |
36 | | - lastToken: tokenCTX.lastToken, |
37 | | - pos: tokenCTX.pos |
38 | | - }; |
| 32 | + return $.extend({}, tokenCTX); |
39 | 33 | }; |
40 | 34 | |
41 | 35 | // Handle QUOTE tags. These are collected in italic/bold lists depending on |