mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-12-17 18:30:39 +00:00
Fix mw.TemplateData.SourceHandler.prototype.extractParametersFromTemplateCode return doc
Does not return a promise Change-Id: I790fb92542abca9768d0e55cfe79906e22886c1d
This commit is contained in:
parent
d723905034
commit
423bc5c33d
|
@ -160,8 +160,7 @@ mw.TemplateData.SourceHandler.prototype.getParametersFromTemplateSource = functi
|
|||
* Adapted from https://he.wikipedia.org/wiki/MediaWiki:Gadget-TemplateParamWizard.js
|
||||
*
|
||||
* @param {string} templateCode Source of the template.
|
||||
* @return {jQuery.Promise} A promise that resolves into an
|
||||
* array of parameters that appear in the template code
|
||||
* @return {string[]} An array of parameters that appear in the template code
|
||||
*/
|
||||
mw.TemplateData.SourceHandler.prototype.extractParametersFromTemplateCode = function ( templateCode ) {
|
||||
var matches,
|
||||
|
|
Loading…
Reference in a new issue