PDA

View Full Version : [CLOSED] [PR 1] Ext.app.Application -> custom configs



tobiu
15 Oct 2011, 6:11 PM
hi team,

with ST 1.x, i was able to add custom configs to an app, like:



Ext.regApplication({
name: 'SC',
foo: 'bar'
});


this was really useful, like for setting namespaced "global" vars for the app.
you can get them later with SC.foo.

in ST 2 they don't get applied anymore.
i tried:



Ext.application({
name: 'SC',
foo: 'bar',
config: {
foo: 'bar'
}
});


without success.

the only workaround i see (without extending / overriding application) is:



Ext.ns('SC');
SC.foo = 'bar';

Ext.application({
name: 'SC'
...
});


it would be cool if setting custom configs will get possible again!

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

edspencer
15 Dec 2011, 1:54 PM
Hmm I don't agree with this, I think you should just set them after the app has been defined