Hey everyone
I'm trying to build proper Application using Ext.application approach and forcing problem of using objects in configs(options).

This breif example shows what I'm talking about:

Code:

Ext.application({
name: 'myApp',
controllers: ['Index']
});

Should create a simple app with global var myApp, right?
Further it creates some myApp.controllers.Index var for desired Index controller.

Code:

Ext.define('myApp.controller.Index', {
extend: 'Ext.app.Controller',
stores: ['MyCustomStore'];
// I create this method here to be used in several Stores and not copy-pasted there
myCustomFunctionToHandleRestExceptions: function(response) {
}
...
});

This code helps me create MyCostomStore to be used in application, right?
Next I try to create this store