that. -> self.

This commit is contained in:
rlx 2014-09-24 20:18:29 +02:00
parent f557733be6
commit 5013532d46

View file

@ -253,16 +253,16 @@ Ox.TreeList = function(options, self) {
return false; return false;
} }
}); });
//that.$element.value(item.id, 'expanded', expanded); //self.$list.value(item.id, 'expanded', expanded);
$img.attr({ $img.attr({
src: getIcon(item.id, expanded).attr('src') src: getIcon(item.id, expanded).attr('src')
}); });
if (expanded) { if (expanded) {
that.$element.addItems( self.$list.addItems(
pos + 1, parseItems(item.items, item.level + 1) pos + 1, parseItems(item.items, item.level + 1)
); );
} else { } else {
that.$element.removeItems( self.$list.removeItems(
pos + 1, parseItems(item.items, item.level + 1).length pos + 1, parseItems(item.items, item.level + 1).length
); );
} }