Fix problem with widget.getStateQualifier()

Fixed to take into account the recent change to read variables from the
parent widget: e60fc9f81f
print-window-tiddler
Jermolene 2014-05-13 18:16:45 +01:00
rodzic 6de6a43623
commit 9a26c4259a
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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