PDA

View Full Version : ExtJs 4.2.0 destroy can not run property



softboy
15 Nov 2013, 7:26 PM
when you run this code , some key point , add animate before destroy window, but seriousness (http://dict.youdao.com/w/seriousness/) will be happen, if you have some wrong in you destroy function, firebug or chrome console display none error, just everything is ok, but this.callParent() nerver run, so parent class resources nerver been release. when I delete
animateTarget : Ext.getBody() erverthing is ok , firebug will display error msg.


Ext.define('A', { extend : 'Ext.window.Window',
title : 'xxxxxxxxxxxxxxx',
width : 100,
height : 100,
autoShow : true,
closeHide : 'hide',
animateTarget : Ext.getBody(),
initComponent : function()
{
this.addListener('hide', function(){
this.destroy();
}, this);
this.callParent();

},
destroy : function()
{
this.this.xx();
this.callParent();
}
});
new A();

Gary Schlosberg
26 Nov 2013, 8:10 PM
I added your code this fiddle, but I'm not sure what exactly the issue is:
https://fiddle.sencha.com/#fiddle/1rf

What should one do to recreate the issue?