summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/mobile.js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-08-19 11:36:29 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-08-19 11:36:29 +0200
commitac58037d5dbc9d2ad8dc05cf609f90176aebb2b0 (patch)
treede731981b9cf32a25403e0b03fa1a2d7c1158a55 /module/web/static/js/mobile.js
parentcompleted renaming (diff)
downloadpyload-ac58037d5dbc9d2ad8dc05cf609f90176aebb2b0.tar.xz
boilerplate for js code
Diffstat (limited to 'module/web/static/js/mobile.js')
-rw-r--r--module/web/static/js/mobile.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/module/web/static/js/mobile.js b/module/web/static/js/mobile.js
new file mode 100644
index 000000000..21d1be26c
--- /dev/null
+++ b/module/web/static/js/mobile.js
@@ -0,0 +1,34 @@
+// Sets the require.js configuration for your application.
+require.config({
+
+ // 3rd party script alias names (Easier to type "jquery" than "libs/jquery-1.7.2.min")
+ paths: {
+
+ // Core Libraries
+ jquery: "libs/jquery-1.8.0",
+ underscore: "libs/lodash-0.4.2",
+ backbone: "libs/backbone-0.9.2",
+
+ // Require.js Plugins
+ text: "plugins/text-2.0.0"
+
+ },
+
+ // Sets the configuration for your third party scripts that are not AMD compatible
+ shim: {
+
+ "backbone": {
+ deps: ["underscore", "jquery"],
+ exports: "Backbone" //attaches "Backbone" to the window object
+ }
+
+ } // end Shim Configuration
+
+});
+
+// Include Desktop Specific JavaScript files here (or inside of your Desktop router)
+require(['jquery','backbone','routers/mobileRouter'], function($, Backbone, Mobile) {
+
+ // Instantiates a new Router
+ this.router = new Mobile();
+}); \ No newline at end of file