rjs -> webpack

This commit is contained in:
Keivan Beigi
2015-02-02 17:18:45 -08:00
parent 344f3d66ef
commit 428a1439e5
399 changed files with 11591 additions and 16139 deletions
+15 -24
View File
@@ -1,25 +1,16 @@
'use strict';
define(
[
'backbone'
], function (Backbone) {
return Backbone.Model.extend({
var Backbone = require('backbone');
defaults: {
seasonNumber: 0,
status : 0
},
methodUrls: {
'update': window.NzbDrone.ApiRoot + '/episode'
},
sync: function(method, model, options) {
if (model.methodUrls && model.methodUrls[method.toLowerCase()]) {
options = options || {};
options.url = model.methodUrls[method.toLowerCase()];
}
return Backbone.sync(method, model, options);
}
});
});
module.exports = Backbone.Model.extend({
defaults : {
seasonNumber : 0,
status : 0
},
methodUrls : {"update" : window.NzbDrone.ApiRoot + '/episode'},
sync : function(method, model, options){
if(model.methodUrls && model.methodUrls[method.toLowerCase()]) {
options = options || {};
options.url = model.methodUrls[method.toLowerCase()];
}
return Backbone.sync(method, model, options);
}
});