Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,684
    Vote Rating
    112
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default [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:

    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!
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the report.

  3. #3
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    9
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    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

Thread Participants: 2