mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Using listenTo instead of on
This commit is contained in:
@@ -78,11 +78,11 @@ define(
|
|||||||
episode.set({ hideSeriesLink: true, series: options.series });
|
episode.set({ hideSeriesLink: true, series: options.series });
|
||||||
});
|
});
|
||||||
|
|
||||||
this.model.on('sync', function () {
|
this.listenTo(this.model, 'sync', function () {
|
||||||
this._afterSeasonMonitored();
|
this._afterSeasonMonitored();
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
this.episodeCollection.on('sync', function () {
|
this.listenTo(this.episodeCollection, 'sync', function () {
|
||||||
this.render();
|
this.render();
|
||||||
}, this);
|
}, this);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ define(
|
|||||||
allFilesDownloaded: allDownloaded
|
allFilesDownloaded: allDownloaded
|
||||||
});
|
});
|
||||||
|
|
||||||
this.model.on('sync', function () {
|
this.listenTo(this.model, 'sync', function () {
|
||||||
this.render();
|
this.render();
|
||||||
}, this);
|
}, this);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user