Hybrid View
-
15 Oct 2011 6:11 PM #1
[PR 1] Ext.app.Application -> custom configs
[PR 1] Ext.app.Application -> custom configs
hi team,
with ST 1.x, i was able to add custom configs to an app, like:
this was really useful, like for setting namespaced "global" vars for the app.Code:Ext.regApplication({ name: 'SC', foo: 'bar' });
you can get them later with SC.foo.
in ST 2 they don't get applied anymore.
i tried:
without success.Code:Ext.application({ name: 'SC', foo: 'bar', config: { foo: 'bar' } });
the only workaround i see (without extending / overriding application) is:
it would be cool if setting custom configs will get possible again!Code:Ext.ns('SC'); SC.foo = 'bar'; Ext.application({ name: 'SC' ... });
-
17 Oct 2011 8:53 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
Thank you for the report.
-
15 Dec 2011 1:54 PM #3Sencha - Community Support Team
- Join Date
- Jan 2009
- Location
- Palo Alto, California
- Posts
- 1,941
- Vote Rating
- 6
Hmm I don't agree with this, I think you should just set them after the app has been defined
Ext JS Senior Software Architect
Personal Blog: http://edspencer.net
Twitter: http://twitter.com/edspencer
Github: http://github.com/edspencer
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote