-
4 Jan 2013 12:35 AM #1
Store destroyStore throw Cannot call method 'clear' of null
Store destroyStore throw Cannot call method 'clear' of null
I've got Cannot call method 'clear' of null, when my store configured as
Notice that Ext.data.Store has methodCode:{ autoDestroy: true, buffered: true }
And parent class Ext.data.AbstractStore set me.data to nullCode:destroyStore: function() { this.callParent(arguments); if (this.buffered) { this.data.clear(); // this.data is 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; } } },
-
5 Jan 2013 2:23 PM #2
Thanks for the report! I have opened a bug in our bug tracker.
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-8160
in
4.2.0.265.


Reply With Quote