stirucherai
2 Dec 2011, 3:39 AM
Hi,
I have defined button (using ICONCLS) with-in a panel. As part of the handler (ontap), I preform some action and wanted to remove the button (that was tapped/pressed).
I used panel.items.items[index for the button].destroy(), while the button is getting deleted/destroyed i get error
52467 me.releasedTimeout = setTimeout(function() {
52468 me.element.removeCls(me.getPressedCls());
Basically me.element is null (as it has been removed)
I tried used panel.remove(button item) the result is same.
Is this a bug or there someother way of doing the same.
I have defined button (using ICONCLS) with-in a panel. As part of the handler (ontap), I preform some action and wanted to remove the button (that was tapped/pressed).
I used panel.items.items[index for the button].destroy(), while the button is getting deleted/destroyed i get error
52467 me.releasedTimeout = setTimeout(function() {
52468 me.element.removeCls(me.getPressedCls());
Basically me.element is null (as it has been removed)
I tried used panel.remove(button item) the result is same.
Is this a bug or there someother way of doing the same.