global App window App Models Collections Views Routers init function u

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
/*global App, $*/
window.App = {
Models: {},
Collections: {},
Views: {},
Routers: {},
init: function () {
'use strict';
new App.Routers.Default();
}
};
$(document).ready(function () {
'use strict';
App.init();
Backbone.history.start();
});