mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-12-18 02:40:38 +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
|
* 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,
|
||||||
|
|
Loading…
Reference in a new issue