解决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; // 新增
}

你可能感兴趣的:(ext,prototype)