mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-26 22:46:53 -04:00
16 lines
429 B
JavaScript
16 lines
429 B
JavaScript
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;
|
|
}; |