Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2009
    Posts
    47
    Vote Rating
    1
    uzver is on a distinguished road

      0  

    Default [FIXED] AbstractStore get model name from class definition

    [FIXED] AbstractStore get model name from class definition


    For correct defining new class store:
    Code:
    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:
    Code:
    me.model = Ext.ModelMgr.getModel(config.model);
    to:
    Code:
    me.model = Ext.ModelMgr.getModel(config.model || me.model);

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,997
    Vote Rating
    649
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Agreed, makes sense.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Similar Threads

  1. Replies: 0
    Last Post: 21 Mar 2011, 12:19 PM
  2. Standard class definition patterns
    By shousper in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 16 Mar 2011, 4:47 PM
  3. Replies: 2
    Last Post: 21 Nov 2010, 4:06 PM
  4. How to force specific class definition?
    By dbassett74 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 28 Jun 2009, 2:57 PM
  5. [Grid] TD's class (or css) Definition in ColumnModel?
    By Arkilus in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 3 Jun 2007, 3:41 AM

Thread Participants: 1