estesbubba
17 Apr 2012, 9:53 AM
I've converted our app to use dynamic loading and working with the SDK tools. We have a base app and each client will have its own app.js. 90% of each client's app.js will be shared among all clients and ideally I would like to make a BaseApp.js and have app.js extend it.
So I thought I would start out just converting this:
Ext.application({
name: 'Csg',
glossOnIcon: true,
...
To this:
Ext.create('Ext.app.Application', {
name: 'Csg',
glossOnIcon: true,
...
and it blows up on Ext.ComponentQuery.query(selector, this); I add Ext.ComponentQuery to requires[] and it blows up somewhere else.
So I'm guessing I might be going down the wrong path doing an Ext.create() for the app. How can I make a BaseApp.js and have each client's app.js extend that? I can't find a way to make it work with Ext.application().
So I thought I would start out just converting this:
Ext.application({
name: 'Csg',
glossOnIcon: true,
...
To this:
Ext.create('Ext.app.Application', {
name: 'Csg',
glossOnIcon: true,
...
and it blows up on Ext.ComponentQuery.query(selector, this); I add Ext.ComponentQuery to requires[] and it blows up somewhere else.
So I'm guessing I might be going down the wrong path doing an Ext.create() for the app. How can I make a BaseApp.js and have each client's app.js extend that? I can't find a way to make it work with Ext.application().