almost all js files are loaded using require.js

This commit is contained in:
Keivan Beigi 2013-06-14 16:18:37 -07:00
parent aed7b95245
commit 2407e33ea2
35 changed files with 570 additions and 717 deletions

View file

@ -1,8 +1,8 @@
"use strict";
(function () {
define(['app'], function () {
NzbDrone.Mixins.SaveIfChangedModel = {
// originalInitialize: this.initialize,
// originalInitialize: this.initialize,
initialize: function () {
this.isSaved = true;
@ -15,9 +15,9 @@
this.isSaved = true;
}, this);
// if (originalInitialize) {
// originalInitialize.call(this);
// }
// if (originalInitialize) {
// originalInitialize.call(this);
// }
},
saveIfChanged: function (options) {
@ -26,4 +26,6 @@
}
}
};
}());
return NzbDrone.Missing.SaveIfChangedModel;
});