EXT SuperBoxSelect使用 所在FormPanel销毁问题

...
.......
initComponent:function() {
       Ext.apply(this, {
            items           : new Ext.util.MixedCollection(false),
            usedRecords     : new Ext.util.MixedCollection(false),
            addedRecords    : [],
            remoteLookup    : [],
            hideTrigger     : true,
            grow            : false,
            resizable       : false,
            multiSelectMode : false,
            preRenderValue  : null
        });
        
        if(this.transform){
            this.doTransform();
        }
    
        if(this.forceFormValue){
            this.items.on({
               add: this.manageNameAttribute,
               remove: this.manageNameAttribute,
               clear: this.manageNameAttribute,
               scope: this
            })
        }
        
        Ext.ux.form.SuperBoxSelect.superclass.initComponent.call(this);
        if(this.mode === 'remote' && this.store){
            this.store.on('load', this.onStoreLoad, this);
        }
       this.on('beforedestroy', function(){// 添加被销毁前事件
            this.clearValue(true);
        })
},
     .......
     ...

你可能感兴趣的:(ext)