From 1b08cd40bf2d7c63eb3283647b285c2c1e198dc7 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Sat, 3 Sep 2022 16:36:36 +0100 Subject: [PATCH] Coding style tweak --- core/modules/parsers/wikiparser/rules/transcludeblock.js | 2 +- core/modules/parsers/wikiparser/rules/transcludeinline.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/parsers/wikiparser/rules/transcludeblock.js b/core/modules/parsers/wikiparser/rules/transcludeblock.js index b41d24e194..c033c24409 100644 --- a/core/modules/parsers/wikiparser/rules/transcludeblock.js +++ b/core/modules/parsers/wikiparser/rules/transcludeblock.js @@ -41,7 +41,7 @@ exports.parse = function() { }; $tw.utils.each(params,function(paramValue,index) { var name = "" + index; - transcludeNode.attributes["" + index] = { + transcludeNode.attributes[name] = { name: name, type: "string", value: paramValue diff --git a/core/modules/parsers/wikiparser/rules/transcludeinline.js b/core/modules/parsers/wikiparser/rules/transcludeinline.js index 6358fd28fd..3ce9dc78e6 100644 --- a/core/modules/parsers/wikiparser/rules/transcludeinline.js +++ b/core/modules/parsers/wikiparser/rules/transcludeinline.js @@ -40,7 +40,7 @@ exports.parse = function() { }; $tw.utils.each(params,function(paramValue,index) { var name = "" + index; - transcludeNode.attributes["" + index] = { + transcludeNode.attributes[name] = { name: name, type: "string", value: paramValue