1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-25 04:37:40 +00:00

Ubertransclusion positional parameters should be based on name, not position

This commit is contained in:
jeremy@jermolene.com
2022-04-29 16:28:03 +01:00
parent 9713da5071
commit 89b7a3bd28
2 changed files with 8 additions and 8 deletions

View File

@@ -51,7 +51,7 @@ ParametersWidget.prototype.execute = function() {
if(transclusionWidget) {
$tw.utils.each($tw.utils.getOrderedAttributesFromParseTreeNode(self.parseTreeNode),function(attr,index) {
var name = attr.name;
self.setVariable(name,transclusionWidget.getTransclusionParameter(name,transclusionWidget.getTransclusionParameterByPosition(index,self.getAttribute(name))));
self.setVariable(name,transclusionWidget.getTransclusionParameter(name,index,self.getAttribute(name)));
});
}
// Construct the child widgets