Ext.app.application object is erased after initialization

Posted by Queequeg on Stack Overflow See other posts from Stack Overflow or by Queequeg
Published on 2011-11-20T11:43:40Z Indexed on 2011/11/21 9:50 UTC
Read the original article Hit count: 224

Filed under:
|

I am trying to organize an existing extjs code in a more standard order (extjs wise).

extjs version: extjs-4.0.2a.

I've worked through the Extjs tutorial example and every thing went well.

When I started working on the company's code I've notice there is no use of the application object there for I've added the Ext.application({...}); call.

Ext.application({
    name: 'FOO',
    appFolder: 'appFolderName', 
    launch: function() {    
        console.log('application was created');
    }
});

Upon loading the page I see the console.log output that is included in the "launch" function property - meaning the application object is created but when I look for it ("FOO" object) under the "window" object it is not there. Compering to the tutorial code the application object exist as a property of window. I encounter a few loading problems but I'm guessing the source of it all is this issue.

What am I doing wrong? thanks.

© Stack Overflow or respective owner

Related posts about extjs

Related posts about extjs4