1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00
Files
Radarr/src/UI/Mixins/AsChangeTrackingModel.js
T

22 lines
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;
};