-
20 Oct 2009 6:00 PM #1
Check extjs object types
Check extjs object types
Hello!
How to check if object is a extjs store?
typeof() and Ext.type() returns only "object".
-
20 Oct 2009 6:31 PM #2
@tomlobato -- There are a couple of ways:
Try it..PHP Code:var isStore = function(store){
return store && (store instanceof Ext.data.Store);
//or pick a class method that any store should have
return store && ('loadRecords' in store);
};
console.log( isStore( new Ext.data.JsonStore() ) );
"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
20 Oct 2009 6:39 PM #3


Reply With Quote


