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;
}
});
//that.$element.value(item.id, 'expanded', expanded);
//self.$list.value(item.id, 'expanded', expanded);
$img.attr({
src: getIcon(item.id, expanded).attr('src')
});
if (expanded) {
that.$element.addItems(
self.$list.addItems(
pos + 1, parseItems(item.items, item.level + 1)
);
} else {
that.$element.removeItems(
self.$list.removeItems(
pos + 1, parseItems(item.items, item.level + 1).length
);
}