diff options
author | Jakub Kozisek <jakub.kozisek@gmail.com> | 2011-11-26 03:39:37 +0100 |
---|---|---|
committer | Jakub Kozisek <jakub.kozisek@gmail.com> | 2011-11-26 03:39:37 +0100 |
commit | c0f76c58c7960918990e991d93ad27d9897d1d3d (patch) | |
tree | 70a83416547773cdb5791c1cadc384c88522ef95 /examples/modular-backbone-updated/js/app.js | |
parent | 90e0a441197efba5a4b72d4156f8a0bc4d4e0d1f (diff) | |
download | backbonetutorials-c0f76c58c7960918990e991d93ad27d9897d1d3d.zip backbonetutorials-c0f76c58c7960918990e991d93ad27d9897d1d3d.tar.gz backbonetutorials-c0f76c58c7960918990e991d93ad27d9897d1d3d.tar.bz2 |
moved the updated modular-backbone example into modular-backbone-updated,
modular-backbone now contains original version
Diffstat (limited to 'examples/modular-backbone-updated/js/app.js')
-rw-r--r-- | examples/modular-backbone-updated/js/app.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/modular-backbone-updated/js/app.js b/examples/modular-backbone-updated/js/app.js new file mode 100644 index 0000000..78db732 --- /dev/null +++ b/examples/modular-backbone-updated/js/app.js @@ -0,0 +1,16 @@ +// Filename: app.js +define([ + 'jquery', + 'underscore', + 'backbone', + 'router', // Request router.js +], function($, _, Backbone, Router){ + var initialize = function(){ + // Pass in our Router module and call it's initialize function + Router.initialize(); + } + + return { + initialize: initialize + }; +}); |