-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathmozaic.js
More file actions
18 lines (18 loc) · 811 Bytes
/
mozaic.js
File metadata and controls
18 lines (18 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require([
'cs!utils/mozaic',
'cs!core/constants',
'cs!core/utils',
'cs!' + App.general.LOGGER_MODULE
], function(MozaicLib, Constants, Utils, Logger) {
require(['cs!loader'], function() {
// Start Mozaic namespaces with core lib
window.Mozaic = _.extend({}, MozaicLib);
window.logger = new Logger(App.general.LOG_LEVEL);
loader.load_module("cs!router", // Class to load & instantiate
function(router) { // Run this when class was loaded and instantiated
Backbone.history.start();
},
true, // Instantiate the router
App.urls); // Pass these params to the constructor of Router
});
});