Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / docs / app / Application.js
diff --git a/docs/app/Application.js b/docs/app/Application.js
new file mode 100644 (file)
index 0000000..d1a60e4
--- /dev/null
@@ -0,0 +1,35 @@
+/**
+ * Main application definition for Docs app.
+ *
+ * We define our own Application class because this way we can also
+ * easily define the dependencies.
+ */
+Ext.define('Docs.Application', {
+    extend: 'Ext.app.Application',
+    name: 'Docs',
+
+    requires: [
+        'Docs.Favorites',
+        'Docs.History',
+        'Docs.Settings'
+    ],
+
+    controllers: [
+        'Classes',
+        'Search'
+    ],
+
+    autoCreateViewport: true,
+
+    launch: function() {
+        Docs.App = this;
+        Docs.Favorites.init();
+        Docs.History.init();
+        Docs.Settings.init();
+
+        // When google analytics event tracking script present on page
+        if (Docs.initEventTracking) {
+            Docs.initEventTracking();
+        }
+    }
+});