Fix up missing variable values

We were crashing if a variable was inadvertantly set to undefined
print-window-tiddler
Jeremy Ruston 2013-11-04 10:00:34 +00:00
rodzic adf16eeaf3
commit ff4d76f045
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);