Index: trunk/extensions/VisualEditor/modules/parser/mediawiki.TokenTransformDispatcher.js |
— | — | @@ -50,6 +50,7 @@ |
51 | 51 | |
52 | 52 | // Inherit from EventEmitter |
53 | 53 | TokenTransformDispatcher.prototype = new events.EventEmitter(); |
| 54 | +TokenTransformDispatcher.prototype.constructor = TokenTransformDispatcher; |
54 | 55 | |
55 | 56 | /** |
56 | 57 | * Register to a token source, normally the tokenizer. |
— | — | @@ -187,6 +188,7 @@ |
188 | 189 | |
189 | 190 | /* Call all transformers on a tag. |
190 | 191 | * |
| 192 | + * @method |
191 | 193 | * @param {Object} The current token. |
192 | 194 | * @param {Function} Completion callback for async processing. |
193 | 195 | * @param {Number} Rank of phase end, both key for transforms and rank for |
— | — | @@ -239,6 +241,7 @@ |
240 | 242 | |
241 | 243 | /* Call all transformers on non-tag token types. |
242 | 244 | * |
| 245 | + * @method |
243 | 246 | * @param {Object} The current token. |
244 | 247 | * @param {Function} Completion callback for async processing. |
245 | 248 | * @param {Number} Rank of phase end, both key for transforms and rank for |
— | — | @@ -514,6 +517,7 @@ |
515 | 518 | /** |
516 | 519 | * Curry a parentCB with the object and reference. |
517 | 520 | * |
| 521 | + * @method |
518 | 522 | * @param {Object} TokenAccumulator |
519 | 523 | * @param {misc} Reference / key for callback |
520 | 524 | * @returns {Function} |
Index: trunk/extensions/VisualEditor/modules/parser/ext.core.QuoteTransformer.js |
— | — | @@ -201,7 +201,6 @@ |
202 | 202 | this.dispatcher.removeTransform( this.anyRank, 'any' ); |
203 | 203 | |
204 | 204 | return res; |
205 | | - |
206 | 205 | }; |
207 | 206 | |
208 | 207 | // Convert a bold token to italic to balance an uneven number of both bold and |
Index: trunk/extensions/VisualEditor/modules/parser/mediawiki.HTML5TreeBuilder.node.js |
— | — | @@ -20,7 +20,9 @@ |
21 | 21 | this.processToken({type: 'TAG', name: 'body'}); |
22 | 22 | }; |
23 | 23 | |
| 24 | +// Inherit from EventEmitter |
24 | 25 | FauxHTML5.TreeBuilder.prototype = new events.EventEmitter(); |
| 26 | +FauxHTML5.TreeBuilder.prototype.constructor = FauxHTML5.TreeBuilder; |
25 | 27 | |
26 | 28 | /** |
27 | 29 | * Register for (token) 'chunk' and 'end' events from a token emitter, |
Index: trunk/extensions/VisualEditor/modules/parser/mediawiki.tokenizer.peg.js |
— | — | @@ -19,6 +19,7 @@ |
20 | 20 | |
21 | 21 | // Inherit from EventEmitter |
22 | 22 | PegTokenizer.prototype = new events.EventEmitter(); |
| 23 | +PegTokenizer.prototype.constructor = PegTokenizer; |
23 | 24 | |
24 | 25 | PegTokenizer.src = false; |
25 | 26 | |
Index: trunk/extensions/VisualEditor/modules/parser/mediawiki.DOMPostProcessor.js |
— | — | @@ -83,6 +83,7 @@ |
84 | 84 | |
85 | 85 | // Inherit from EventEmitter |
86 | 86 | DOMPostProcessor.prototype = new events.EventEmitter(); |
| 87 | +DOMPostProcessor.prototype.constructor = DOMPostProcessor; |
87 | 88 | |
88 | 89 | DOMPostProcessor.prototype.doPostProcess = function ( document ) { |
89 | 90 | for(var i = 0; i < this.processors.length; i++) { |
Index: trunk/extensions/VisualEditor/modules/parser/mediawiki.parser.js |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | |
68 | 68 | /** |
69 | 69 | * Conversion from HTML DOM to WikiDOM. This is not needed if plain HTML |
70 | | - * DOM output is needed, so it should only be registered to the |
| 70 | + * DOM output is desired, so it should only be registered to the |
71 | 71 | * DOMPostProcessor 'document' event if WikiDom output is requested. We |
72 | 72 | * could emit events for 'dom', 'wikidom', 'html' and so on, but only |
73 | 73 | * actually set up the needed pipeline stages if a listener is registered. |