1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-24 02:27:19 +00:00

Fix problem with widget.getStateQualifier()

Fixed to take into account the recent change to read variables from the
parent widget: e60fc9f81f
This commit is contained in:
Jermolene 2014-05-13 18:16:45 +01:00
parent 6de6a43623
commit 9a26c4259a

View File

@ -201,8 +201,8 @@ Widget.prototype.getStateQualifier = function(name) {
name = name || "transclusion"; name = name || "transclusion";
var output = [], var output = [],
node = this; node = this;
while(node) { while(node && node.parentWidget) {
if($tw.utils.hop(node.variables,name)) { if($tw.utils.hop(node.parentWidget.variables,name)) {
output.push(node.getVariable(name)); output.push(node.getVariable(name));
} }
node = node.parentWidget; node = node.parentWidget;