1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

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
+16 -31
View File
@@ -1,31 +1,16 @@
'use strict';
define(
function () {
return function () {
var originalInit = this.prototype.initialize;
this.prototype.initialize = function () {
this.isSaved = true;
this.on('change', function () {
this.isSaved = false;
}, this);
this.on('sync', function () {
this.isSaved = true;
}, this);
if (originalInit) {
originalInit.call(this);
}
};
return this;
};
}
);
module.exports = function(){
var originalInit = this.prototype.initialize;
this.prototype.initialize = function(){
this.isSaved = true;
this.on('change', function(){
this.isSaved = false;
}, this);
this.on('sync', function(){
this.isSaved = true;
}, this);
if(originalInit) {
originalInit.call(this);
}
};
return this;
};