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

View file

@ -1,18 +1,12 @@
'use strict';
define(
[
'backbone',
'Profile/ProfileModel'
], function (Backbone, ProfileModel) {
var Backbone = require('backbone');
var ProfileModel = require('./ProfileModel');
var ProfileCollection = Backbone.Collection.extend({
model: ProfileModel,
url : window.NzbDrone.ApiRoot + '/profile'
});
var profiles = new ProfileCollection();
profiles.fetch();
return profiles;
module.exports = (function(){
var ProfileCollection = Backbone.Collection.extend({
model : ProfileModel,
url : window.NzbDrone.ApiRoot + '/profile'
});
var profiles = new ProfileCollection();
profiles.fetch();
return profiles;
}).call(this);

View file

@ -1,14 +1,9 @@
'use strict';
define(
[
'backbone.deepmodel'
], function (DeepModel) {
return DeepModel.DeepModel.extend({
defaults: {
id : null,
name : '',
cutoff: null
}
});
});
var DeepModel = require('backbone.deepmodel');
module.exports = DeepModel.DeepModel.extend({
defaults : {
id : null,
name : '',
cutoff : null
}
});