extjs 中iframe内存泄漏的问题

在iframe关闭时将其src设置为false.我是将IFrame做成继承Ext.Panel的UI,释放的时候重写destroy,

代码如下:

destroy:function(){
  this.iframe.dom.src=false;  
  Business.IFrame.superclass.destroy.apply(this, arguments); 
  CollectGarbage();
 },

你可能感兴趣的:(iframe)