mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
32 lines
616 B
JavaScript
32 lines
616 B
JavaScript
'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;
|
|
};
|
|
}
|
|
);
|