kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fix up missing variable values
We were crashing if a variable was inadvertantly set to undefinedprint-window-tiddler
rodzic
adf16eeaf3
commit
ff4d76f045
|
@ -88,7 +88,7 @@ Widget.prototype.getVariable = function(name,options) {
|
|||
return this.evaluateMacroModule(name,actualParams,options.defaultValue);
|
||||
}
|
||||
// Get the value
|
||||
var value = node.variables[name].value;
|
||||
var value = node.variables[name].value || "";
|
||||
// Substitute any parameters specified in the definition
|
||||
value = this.substituteVariableParameters(value,node.variables[name].params,actualParams);
|
||||
value = this.substituteVariableReferences(value);
|
||||
|
|
Ładowanie…
Reference in New Issue