From 423bc5c33d6d3bd6e1b37f9d1ee7ef69e6960e48 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Wed, 20 Jan 2016 22:34:00 +0000 Subject: [PATCH] Fix mw.TemplateData.SourceHandler.prototype.extractParametersFromTemplateCode return doc Does not return a promise Change-Id: I790fb92542abca9768d0e55cfe79906e22886c1d --- modules/ext.templateDataGenerator.sourceHandler.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/ext.templateDataGenerator.sourceHandler.js b/modules/ext.templateDataGenerator.sourceHandler.js index 13db457e..0f10149c 100644 --- a/modules/ext.templateDataGenerator.sourceHandler.js +++ b/modules/ext.templateDataGenerator.sourceHandler.js @@ -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,