mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-05 05:30:02 +00:00
Don't create variables with value undefined for missing parameters
This commit is contained in:
parent
7ead87bd29
commit
e5164113c4
@ -51,7 +51,7 @@ ParametersWidget.prototype.execute = function() {
|
|||||||
if(transclusionWidget) {
|
if(transclusionWidget) {
|
||||||
$tw.utils.each($tw.utils.getOrderedAttributesFromParseTreeNode(self.parseTreeNode),function(attr,index) {
|
$tw.utils.each($tw.utils.getOrderedAttributesFromParseTreeNode(self.parseTreeNode),function(attr,index) {
|
||||||
var name = attr.name,
|
var name = attr.name,
|
||||||
value = transclusionWidget.getTransclusionParameter(name,index,self.getAttribute(name));
|
value = transclusionWidget.getTransclusionParameter(name,index,self.getAttribute(name,""));
|
||||||
self.setVariable(name,value);
|
self.setVariable(name,value);
|
||||||
});
|
});
|
||||||
$tw.utils.each(transclusionWidget.getTransclusionMetaVariables(),function(value,name) {
|
$tw.utils.each(transclusionWidget.getTransclusionMetaVariables(),function(value,name) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user