Using listenTo instead of on

This commit is contained in:
Mark McDowall committed 2013-08-19 08:12:35 -07:00
1 parent 6d280122ff
commit 551e6e2e5b
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -78,11 +78,11 @@ define(
episode.set({ hideSeriesLink: true, series: options.series });
});
this.model.on('sync', function () {
this.listenTo(this.model, 'sync', function () {
this._afterSeasonMonitored();
}, this);
this.episodeCollection.on('sync', function () {
this.listenTo(this.episodeCollection, 'sync', function () {
this.render();
}, this);
},
+1 -1
View File
@@ -34,7 +34,7 @@ define(
allFilesDownloaded: allDownloaded
});
this.model.on('sync', function () {
this.listenTo(this.model, 'sync', function () {
this.render();
}, this);
},