1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +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";
var output = [],
node = this;
while(node) {
if($tw.utils.hop(node.variables,name)) {
while(node && node.parentWidget) {
if($tw.utils.hop(node.parentWidget.variables,name)) {
output.push(node.getVariable(name));
}
node = node.parentWidget;