PDA

View Full Version : [FIXED] AbstractStore get model name from class definition



uzver
24 Mar 2011, 4:10 AM
For correct defining new class store:


Ext.define('cl.stores.TestStore', {
singleton: true,
extend:'Ext.data.Store',
requires: ['cl.models.TestModel'],
model: 'cl.models.TestModel'
}, function() {
Ext.regStore('cl.stores.TestStore', cl.stores.TestStore);
});

need add to AbstractStore.js:211
from:


me.model = Ext.ModelMgr.getModel(config.model);

to:


me.model = Ext.ModelMgr.getModel(config.model || me.model);

evant
24 Mar 2011, 4:42 AM
Agreed, makes sense.