[CLOSED] Bug on destroying callouts
Hello support
There seems to be a bug when you try destroy a component that has a callout component on it..
if you create a tree with a callout component that has a delegate on, the callout object is created and if the callout is just shown once it will destroy correctly..
but if the callout is not shown and you call destroy on the tree then the method "this.destroyCallouts();" is called, the method fails since "destroy" is undefined on the callout object, the objet seems to be a type of object and not that of a callout..
the codeline number is 189 in the minified version of ext.axd
Code:
this.destroyCallouts();
this.callParent(arguments);},
destroyCallouts:function(){
if(this.callouts)
{for(i=0;i<this.callouts.length;i++){
var callout=this.callouts[i];
if(!callout.isDestroyed){ //<-- this part is undefined aswell, it might be of the reson that the var callout is not of the type callout
callout.destroyFromCmp=true;
callout.destroy(); //<-- this part failed since the method destroy is undefined
}
}
Best regards
Akpenob