PDA

View Full Version : [FIXED] [PR 1] Ext.app.Application -> stores



tobiu
15 Oct 2011, 10:55 AM
hi team,

when creating an app like this:



Ext.Loader.setConfig({
enabled : true
});

Ext.application({
name : 'SC',

phoneStartupScreen : 'resources/images/startscreen.jpg',

controllers : [
'Main'
],

stores : [
'Settings'
],

views : [
'login.Login'
]
});


the loader successfully loads the controller and the view, but for the store it fires an error:



[Ext.Loader] Synchronously loading 'SC.store.Settings'; consider adding Ext.require('SC.store.Settings') above Ext.onReady

Uncaught Error: [Ext.Loader] Failed loading synchronously via XHR: 'app/store/Settings.js'; It's likely that the file is either being loaded from a different domain or from the local file system whereby cross origin requests are not allowed due to security reasons. Use asynchronous loading with Ext.require instead.

Jamie Avins
17 Oct 2011, 8:26 AM
Thank you for the report.

edspencer
15 Dec 2011, 1:52 PM
This is working in trunk and should be fine in PR4