Ext JS 4 inline tableau store config

Est B) de ne pas le inline équivalent d'Une)?

//A) Create store with Ext.create
var storeInstance = Ext.create('Ext.data.ArrayStore', {
    fields: ['company', 'price'],
    data: [
        ['3m Co',71.72],
        ['Alcoa Inc',29.01],
        ['Boeing Co.',75.43]
    ]
});

//B) Inline config object for store instanced in A)
var storeConfig = {
    xtype: 'store:array',  
    fields: [ 'company', 'price' ],
    data: [
        ['3m Co',71.72],
        ['Alcoa Inc',29.01],
        ['Boeing Co.',75.43]
    ]
};

Voici le code dans un bac à sable: http://jsfiddle.net/cFD9W/1/

OriginalL'auteur core | 2013-02-28