Skip to content

Instantly share code, notes, and snippets.

@ORESoftware
Last active September 18, 2015 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ORESoftware/f11b5f936cc5709f8d45 to your computer and use it in GitHub Desktop.
Save ORESoftware/f11b5f936cc5709f8d45 to your computer and use it in GitHub Desktop.
application
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