From 24f0a580b5c63e0857e3afd752d84951608fba91 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 16 Oct 2012 08:46:29 +0100 Subject: [PATCH] Refine macro parameter test --- core/modules/treenodes/macro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/treenodes/macro.js b/core/modules/treenodes/macro.js index c86cf61a1..f24857dde 100644 --- a/core/modules/treenodes/macro.js +++ b/core/modules/treenodes/macro.js @@ -126,7 +126,7 @@ Macro.prototype.parseMacroParamString = function(paramString) { }; Macro.prototype.hasParameter = function(name) { - return $tw.utils.hop(this.params,name); + return this.params[name] !== undefined; }; Macro.prototype.cloneContent = function() {