Last active
September 18, 2015 21:33
-
-
Save ORESoftware/f11b5f936cc5709f8d45 to your computer and use it in GitHub Desktop.
application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define( | |
[ | |
'*windowPatches', | |
'*backbonePatches', | |
'*jsPatches', | |
'observe', | |
'backbone', | |
'jquery', | |
'underscore', | |
'ijson', | |
'react' | |
], | |
/* | |
we don't use the majority of these dependencies in this file, but they are loaded here so that (1) r.js can build | |
the optimized file, and (2) so that we can do synchronous requires later on in our application | |
note: anything dependent on Backbone needs to be loaded in the next file (boot.js) | |
*/ | |
function (windowPatches, backbonePatches, jsPatches, Observe, Backbone, $, _, IJSON, React) { | |
///////////////////////////////////// | |
debugger; //debugger should stop here | |
///////////////////////////////////// | |
//////NOTE: we will use the global Backbone and jQuery instances throughout the app | |
window.React = React; // export for http://fb.me/react-devtools | |
window.IJSON = window.ijson = IJSON; | |
var start = function () { | |
//we want to load patches before loading any other files | |
require(['app/js/boot'], function (boot) { | |
boot.initialize(); | |
}); | |
}; | |
return { | |
start: start | |
}; | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment