mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-26 08:56:52 +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) {
|
||||
$tw.utils.each($tw.utils.getOrderedAttributesFromParseTreeNode(self.parseTreeNode),function(attr,index) {
|
||||
var name = attr.name,
|
||||
value = transclusionWidget.getTransclusionParameter(name,index,self.getAttribute(name));
|
||||
value = transclusionWidget.getTransclusionParameter(name,index,self.getAttribute(name,""));
|
||||
self.setVariable(name,value);
|
||||
});
|
||||
$tw.utils.each(transclusionWidget.getTransclusionMetaVariables(),function(value,name) {
|
||||
|
Loading…
Reference in New Issue
Block a user