mirror of
https://github.com/Readarr/Readarr
synced 2025-12-31 12:42:25 +01:00
22 lines
No EOL
440 B
JavaScript
22 lines
No EOL
440 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;
|
|
}; |