mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-16 23:04:50 +00:00
Fix macrocall widget to not pass $name as a parameter
This commit is contained in:
parent
1ca473fd2f
commit
45f0f46fdf
@ -40,7 +40,9 @@ MacroCallWidget.prototype.execute = function() {
|
|||||||
// Merge together the parameters specified in the parse tree with the specified attributes
|
// Merge together the parameters specified in the parse tree with the specified attributes
|
||||||
var params = this.parseTreeNode.params ? this.parseTreeNode.params.slice(0) : [];
|
var params = this.parseTreeNode.params ? this.parseTreeNode.params.slice(0) : [];
|
||||||
$tw.utils.each(this.attributes,function(attribute,name) {
|
$tw.utils.each(this.attributes,function(attribute,name) {
|
||||||
|
if(name !== "$name") {
|
||||||
params.push({name: name, value: attribute});
|
params.push({name: name, value: attribute});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
// Get the macro value
|
// Get the macro value
|
||||||
var text = this.getVariable(this.parseTreeNode.name || this.getAttribute("$name"),{params: params});
|
var text = this.getVariable(this.parseTreeNode.name || this.getAttribute("$name"),{params: params});
|
||||||
|
Loading…
Reference in New Issue
Block a user