`
lhgyy00
  • 浏览: 139629 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论

解决Ext的窗口关闭还占用内存的问题

阅读更多

/**
 解决Ext的窗口关闭还占用内存的问题
**/
Ext.Window.prototype.beforeDestroy = function(){
        Ext.destroy(
   this.focusEl,  // 新增
   this.bwrap, // 新增
            this.resizer,
            this.dd,
            this.proxy,
            this.mask
        );
        Ext.Window.superclass.beforeDestroy.call(this);
 
 this.focusEl=null;  // 新增
 this.bwrap=null; // 新增
}

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics