From 551e6e2e5b7c7d01ed3e8d8021d9622c080b8329 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 19 Aug 2013 08:12:35 -0700 Subject: [PATCH] Using listenTo instead of on --- UI/Series/Details/SeasonLayout.js | 4 ++-- UI/Series/Details/SeasonMenu/ItemView.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/Series/Details/SeasonLayout.js b/UI/Series/Details/SeasonLayout.js index 0ab75b514..8fc7464a1 100644 --- a/UI/Series/Details/SeasonLayout.js +++ b/UI/Series/Details/SeasonLayout.js @@ -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); }, diff --git a/UI/Series/Details/SeasonMenu/ItemView.js b/UI/Series/Details/SeasonMenu/ItemView.js index 403600c61..2ffe52418 100644 --- a/UI/Series/Details/SeasonMenu/ItemView.js +++ b/UI/Series/Details/SeasonMenu/ItemView.js @@ -34,7 +34,7 @@ define( allFilesDownloaded: allDownloaded }); - this.model.on('sync', function () { + this.listenTo(this.model, 'sync', function () { this.render(); }, this); },