2014-02-09 03:19:48 +00:00
|
|
|
require.config({
|
2014-05-07 00:11:12 +00:00
|
|
|
|
2014-02-09 03:19:48 +00:00
|
|
|
baseUrl: 'js/lib',
|
2014-05-07 00:11:12 +00:00
|
|
|
|
2014-02-09 03:19:48 +00:00
|
|
|
paths: {
|
|
|
|
app: '../app',
|
|
|
|
tpl: '../tpl'
|
|
|
|
},
|
2014-05-07 00:11:12 +00:00
|
|
|
|
2014-02-09 03:19:48 +00:00
|
|
|
shim: {
|
|
|
|
'backbone': {
|
|
|
|
deps: ['underscore', 'jquery'],
|
|
|
|
exports: 'Backbone'
|
|
|
|
},
|
|
|
|
'backbone.bootstrap-modal': {
|
|
|
|
deps: ['backbone', 'bootstrap']
|
|
|
|
},
|
|
|
|
'bootstrap': {
|
|
|
|
deps: ['jquery']
|
|
|
|
},
|
2014-05-07 00:11:12 +00:00
|
|
|
'ladda': {
|
|
|
|
deps: ['bootstrap']
|
|
|
|
},
|
2014-02-09 03:19:48 +00:00
|
|
|
'marionette': {
|
|
|
|
deps: ['backbone'],
|
|
|
|
exports: 'Marionette'
|
|
|
|
},
|
|
|
|
'marionette-formview': {
|
|
|
|
deps: ['marionette']
|
|
|
|
},
|
|
|
|
'underscore': {
|
|
|
|
exports: '_'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
require(['jquery', 'bootstrap', 'backbone', 'app/router'], function ($, Bootstrap, Backbone, Router) {
|
|
|
|
var router = new Router();
|
|
|
|
Backbone.history.start();
|
2014-05-07 00:11:12 +00:00
|
|
|
});
|