diff options
author | brandon flowers <brandonflowers@gmail.com> | 2013-05-07 09:42:50 -0400 |
---|---|---|
committer | brandon flowers <brandonflowers@gmail.com> | 2013-05-07 09:42:50 -0400 |
commit | 345af3b31044206b0f3f9b7e3652dd1142998915 (patch) | |
tree | 8b13539749ca4ff90aa5ddcf8ce1420e747763a0 /examples/nodejs-mongodb-mongoose-restify/js/main.js | |
parent | 58be424b2e8d1ea4af6dc2edde6a98fe9cf201a8 (diff) | |
download | backbonetutorials-345af3b31044206b0f3f9b7e3652dd1142998915.zip backbonetutorials-345af3b31044206b0f3f9b7e3652dd1142998915.tar.gz backbonetutorials-345af3b31044206b0f3f9b7e3652dd1142998915.tar.bz2 |
small tweak to readme to use existing demo
Diffstat (limited to 'examples/nodejs-mongodb-mongoose-restify/js/main.js')
-rw-r--r-- | examples/nodejs-mongodb-mongoose-restify/js/main.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/examples/nodejs-mongodb-mongoose-restify/js/main.js b/examples/nodejs-mongodb-mongoose-restify/js/main.js deleted file mode 100644 index b5a5557..0000000 --- a/examples/nodejs-mongodb-mongoose-restify/js/main.js +++ /dev/null @@ -1,33 +0,0 @@ -// Require.js allows us to configure shortcut alias -// Their usage will become more apparent futher along in the tutorial. -require.config({ - paths: { - // Major libraries - jquery: 'libs/jquery/jquery-min', - underscore: 'libs/underscore/underscore-min', // https://github.com/amdjs - backbone: 'libs/backbone/backbone-min', // https://github.com/amdjs - sinon: 'libs/sinon/sinon.js', - - // Require.js plugins - text: 'libs/require/text', - order: 'libs/require/order', - - // Just a short cut so we can put our html outside the js dir - // When you have HTML/CSS designers this aids in keeping them out of the js directory - templates: '../templates' - }, - urlArgs: "bust=" + (new Date()).getTime() - -}); - -// Let's kick off the application - -require([ - 'views/app', - 'router', - 'vm' -], function(AppView, Router, Vm){ - var appView = Vm.create({}, 'AppView', AppView); - Router.initialize({appView: appView}); - appView.render(); // render() calls Backbone.history when its ready to start -}); |