mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Fix problem with variables containing an empty string
See https://github.com/Jermolene/TiddlyWiki5/commit/e60fc9f81f2c8f0d115543d8 d330a1d68f9b890a#commitcomment-6301921
This commit is contained in:
parent
e8c9d78079
commit
75fee26b58
@ -94,7 +94,7 @@ Widget.prototype.getVariable = function(name,options) {
|
||||
// Check for the variable defined in the parent widget (or an ancestor in the prototype chain)
|
||||
if(parentWidget && name in parentWidget.variables) {
|
||||
var variable = parentWidget.variables[name],
|
||||
value = variable.value || options.defaultValue;
|
||||
value = variable.value;
|
||||
// Substitute any parameters specified in the definition
|
||||
value = this.substituteVariableParameters(value,variable.params,actualParams);
|
||||
value = this.substituteVariableReferences(value);
|
||||
|
Loading…
Reference in New Issue
Block a user