PDA

View Full Version : items.clear() doesn't work?



ghostzhang
20 Dec 2010, 5:57 PM
code: panel.items.get(1).items.get(0).items.clear();
panel.doLayout();
any help?

and I try:
items = panel.items.get(1).items.get(3).items;
items.each(function(item,index,length){
items.removeAt(index);
delete item;
});
panel.doLayout();

still doesn't work.

thanks