PDA

View Full Version : IE 8 and behind error



drumforhim
1 Nov 2012, 4:40 AM
I have a function that cleans up my form stores
nothing fancy...


cleanUpStores : function(stores,del)
{
if(stores)
{
for(var i=0;i<stores.length;i++)
{
Ext.StoreManager.lookup(stores[i]).removeAll();
if(del)
Ext.StoreManager.unregister(stores[i]);
}
}
},

i my case i don't use unregister because i'm passing the del parametre as false.
i get the following error in IE8 & 7 only,
Unable to get value of the property 'isStore': object is null or undefined
is there an update. i'm using ext.js 4.1.1 .
regards!

skirtle
1 Nov 2012, 4:52 AM
There's probably a stray comma somewhere, maybe where you build the list of stores?

drumforhim
1 Nov 2012, 5:54 AM
Thanks a lot bud! it was a comma in the stores array i was passing into the function!
regards!