Fix mw.TemplateData.SourceHandler.prototype.extractParametersFromTemplateCode return doc

Does not return a promise

Change-Id: I790fb92542abca9768d0e55cfe79906e22886c1d
This commit is contained in:
Alex Monk 2016-01-20 22:34:00 +00:00
parent d723905034
commit 423bc5c33d

View file

@ -160,8 +160,7 @@ mw.TemplateData.SourceHandler.prototype.getParametersFromTemplateSource = functi
* Adapted from https://he.wikipedia.org/wiki/MediaWiki:Gadget-TemplateParamWizard.js * Adapted from https://he.wikipedia.org/wiki/MediaWiki:Gadget-TemplateParamWizard.js
* *
* @param {string} templateCode Source of the template. * @param {string} templateCode Source of the template.
* @return {jQuery.Promise} A promise that resolves into an * @return {string[]} An array of parameters that appear in the template code
* array of parameters that appear in the template code
*/ */
mw.TemplateData.SourceHandler.prototype.extractParametersFromTemplateCode = function ( templateCode ) { mw.TemplateData.SourceHandler.prototype.extractParametersFromTemplateCode = function ( templateCode ) {
var matches, var matches,