mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-26 22:46:53 -04:00
rjs -> webpack
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user