[PR 1] Ext.app.Application -> custom configs
hi team,
with ST 1.x, i was able to add custom configs to an app, like:
Code:
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:
Code:
Ext.application({
name: 'SC',
foo: 'bar',
config: {
foo: 'bar'
}
});
without success.
the only workaround i see (without extending / overriding application) is:
Code:
Ext.ns('SC');
SC.foo = 'bar';
Ext.application({
name: 'SC'
...
});
it would be cool if setting custom configs will get possible again!