summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/app.js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-12-23 13:02:55 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-12-23 13:02:55 +0100
commit62b750898259ef92158ce01a29a3469c2dbceeea (patch)
treec33a0607fd443207b020833a647b8d99cdb58583 /module/web/static/js/app.js
parentremoved edit icon, changed color (diff)
downloadpyload-62b750898259ef92158ce01a29a3469c2dbceeea.tar.xz
added app object + event aggegator
Diffstat (limited to 'module/web/static/js/app.js')
-rw-r--r--module/web/static/js/app.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/module/web/static/js/app.js b/module/web/static/js/app.js
new file mode 100644
index 000000000..e846f3e0a
--- /dev/null
+++ b/module/web/static/js/app.js
@@ -0,0 +1,34 @@
+/*
+ * Global Application Object
+ * Contains all necessary logic shared across views
+ */
+/*jslint browser: true*/
+define([
+
+ // Libraries.
+ 'jquery',
+ 'underscore',
+ 'backbone',
+ 'utils/initHB',
+ 'utils/animations',
+ 'utils/lazyRequire',
+ 'wreqr',
+ 'bootstrap'
+
+], function($, _, Backbone, Handlebars) {
+ 'use strict';
+
+ var Application = function(options){
+ this.vent = new Backbone.Wreqr.EventAggregator();
+ _.extend(this, options);
+ };
+
+ _.extend(Application.prototype, Backbone.Events, {
+
+
+ });
+
+
+ // Returns the app object to be available to other modules through require.js.
+ return new Application();
+}); \ No newline at end of file