Skip to content

Instantly share code, notes, and snippets.

@ORESoftware ORESoftware/application.js
Last active Sep 18, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.