|
|
@ -39,38 +39,33 @@ require.config({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
'underscore': {
|
|
|
|
'underscore': {
|
|
|
|
dep : ['$'],
|
|
|
|
deps : ['$'],
|
|
|
|
exports: '_',
|
|
|
|
exports: '_'
|
|
|
|
init : function () {
|
|
|
|
|
|
|
|
require(['mixins/underscore.mixin.deepExtend']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
backbone: {
|
|
|
|
backbone: {
|
|
|
|
deps : ['underscore', '$'],
|
|
|
|
deps : ['underscore', '$'],
|
|
|
|
exports: 'Backbone',
|
|
|
|
exports: 'Backbone'
|
|
|
|
init : function () {
|
|
|
|
},
|
|
|
|
require(['libs/backbone.mutators']);
|
|
|
|
|
|
|
|
}
|
|
|
|
'backbone.deepmodel': {
|
|
|
|
|
|
|
|
deps: ['mixins/underscore.mixin.deepExtend']
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
marionette: {
|
|
|
|
marionette: {
|
|
|
|
deps : ['backbone'],
|
|
|
|
deps : ['backbone', 'mixins/backbone.marionette.templates'],
|
|
|
|
exports: 'Marionette',
|
|
|
|
exports: 'Marionette',
|
|
|
|
init : function () {
|
|
|
|
init : function (Backbone, TemplateMixin) {
|
|
|
|
require(['mixins/backbone.marionette.templates']);
|
|
|
|
TemplateMixin.call(Marionette.TemplateCache);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
signalR: {
|
|
|
|
signalR: {
|
|
|
|
dep: ['$']
|
|
|
|
deps: ['$']
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
'backbone.pageable': {
|
|
|
|
'backbone.pageable': {
|
|
|
|
dep : ['backbone'],
|
|
|
|
deps: ['backbone']
|
|
|
|
init: function () {
|
|
|
|
|
|
|
|
console.log(this);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
backgrid : {
|
|
|
|
backgrid : {
|
|
|
@ -101,6 +96,9 @@ define([
|
|
|
|
'Instrumentation/ErrorHandler'
|
|
|
|
'Instrumentation/ErrorHandler'
|
|
|
|
], function (Marionette, ModalRegion) {
|
|
|
|
], function (Marionette, ModalRegion) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
require(['libs/backbone.mutators']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.NzbDrone = new Marionette.Application();
|
|
|
|
window.NzbDrone = new Marionette.Application();
|
|
|
|
window.NzbDrone.Config = {};
|
|
|
|
window.NzbDrone.Config = {};
|
|
|
|
window.NzbDrone.Form = {};
|
|
|
|
window.NzbDrone.Form = {};
|
|
|
|