Hybrid View

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-8160 in a recent build.
  1. #1
    Sencha User
    Join Date
    Nov 2010
    Location
    Ukraine
    Posts
    11
    Vote Rating
    0
    NexusOne is on a distinguished road

      0  

    Default Store destroyStore throw Cannot call method 'clear' of null

    I've got Cannot call method 'clear' of null, when my store configured as
    Code:
    {
         autoDestroy: true, 
         buffered: true
    }
    Notice that Ext.data.Store has method
    Code:
    destroyStore: function() {
            this.callParent(arguments);
    
            if (this.buffered) {
                this.data.clear(); // this.data is null
            }
        },
    And parent class Ext.data.AbstractStore set me.data to null
    Code:
    destroyStore: function() {
            var me = this;
    
            if (!me.isDestroyed) {
                if (me.storeId) {
                    Ext.data.StoreManager.unregister(me);
                }
                me.clearData();
                me.data = me.tree = me.sorters = me.filters = me.groupers = null;
                if (me.reader) {
                    me.reader.destroyReader();
                }
                me.proxy = me.reader = me.writer = null;
                me.clearListeners();
                me.isDestroyed = true;
    
                if (me.implicitModel) {
                    Ext.destroy(me.model);
                } else {
                    me.model = null;
                }
            }
        },

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,555
    Vote Rating
    61
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1