/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
+ * Ext JS Library 3.3.0
+ * Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
*/
-Ext.app.App = function(cfg){\r
- Ext.apply(this, cfg);\r
- this.addEvents({\r
- 'ready' : true,\r
- 'beforeunload' : true\r
- });\r
-\r
- Ext.onReady(this.initApp, this);\r
-};\r
-\r
-Ext.extend(Ext.app.App, Ext.util.Observable, {\r
- isReady: false,\r
- startMenu: null,\r
- modules: null,\r
-\r
- getStartConfig : function(){\r
-\r
- },\r
-\r
- initApp : function(){\r
- this.startConfig = this.startConfig || this.getStartConfig();\r
-\r
- this.desktop = new Ext.Desktop(this);\r
-\r
- this.launcher = this.desktop.taskbar.startMenu;\r
-\r
- this.modules = this.getModules();\r
- if(this.modules){\r
- this.initModules(this.modules);\r
- }\r
-\r
- this.init();\r
-\r
- Ext.EventManager.on(window, 'beforeunload', this.onUnload, this);\r
- this.fireEvent('ready', this);\r
- this.isReady = true;\r
- },\r
-\r
- getModules : Ext.emptyFn,\r
- init : Ext.emptyFn,\r
-\r
- initModules : function(ms){\r
- for(var i = 0, len = ms.length; i < len; i++){\r
- var m = ms[i];\r
- this.launcher.add(m.launcher);\r
- m.app = this;\r
- }\r
- },\r
-\r
- getModule : function(name){\r
- var ms = this.modules;\r
- for(var i = 0, len = ms.length; i < len; i++){\r
- if(ms[i].id == name || ms[i].appType == name){\r
- return ms[i];\r
- }\r
- }\r
- return '';\r
- },\r
-\r
- onReady : function(fn, scope){\r
- if(!this.isReady){\r
- this.on('ready', fn, scope);\r
- }else{\r
- fn.call(scope, this);\r
- }\r
- },\r
-\r
- getDesktop : function(){\r
- return this.desktop;\r
- },\r
-\r
- onUnload : function(e){\r
- if(this.fireEvent('beforeunload', this) === false){\r
- e.stopEvent();\r
- }\r
- }\r
+Ext.app.App = function(cfg){
+ Ext.apply(this, cfg);
+ this.addEvents({
+ 'ready' : true,
+ 'beforeunload' : true
+ });
+
+ Ext.onReady(this.initApp, this);
+};
+
+Ext.extend(Ext.app.App, Ext.util.Observable, {
+ isReady: false,
+ startMenu: null,
+ modules: null,
+
+ getStartConfig : function(){
+
+ },
+
+ initApp : function(){
+ this.startConfig = this.startConfig || this.getStartConfig();
+
+ this.desktop = new Ext.Desktop(this);
+
+ this.launcher = this.desktop.taskbar.startMenu;
+
+ this.modules = this.getModules();
+ if(this.modules){
+ this.initModules(this.modules);
+ }
+
+ this.init();
+
+ Ext.EventManager.on(window, 'beforeunload', this.onUnload, this);
+ this.fireEvent('ready', this);
+ this.isReady = true;
+ },
+
+ getModules : Ext.emptyFn,
+ init : Ext.emptyFn,
+
+ initModules : function(ms){
+ for(var i = 0, len = ms.length; i < len; i++){
+ var m = ms[i];
+ this.launcher.add(m.launcher);
+ m.app = this;
+ }
+ },
+
+ getModule : function(name){
+ var ms = this.modules;
+ for(var i = 0, len = ms.length; i < len; i++){
+ if(ms[i].id == name || ms[i].appType == name){
+ return ms[i];
+ }
+ }
+ return '';
+ },
+
+ onReady : function(fn, scope){
+ if(!this.isReady){
+ this.on('ready', fn, scope);
+ }else{
+ fn.call(scope, this);
+ }
+ },
+
+ getDesktop : function(){
+ return this.desktop;
+ },
+
+ onUnload : function(e){
+ if(this.fireEvent('beforeunload', this) === false){
+ e.stopEvent();
+ }
+ }
});
\ No newline at end of file