From 6a07bb1b9bc46c65f08d5d6a6b76d1296245c0cc Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sun, 23 Feb 2014 16:02:30 +0100 Subject: [PATCH] Now creating Backbone.Model instance for EpisodeFile. --- src/UI/Cells/EpisodeStatusCell.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/UI/Cells/EpisodeStatusCell.js b/src/UI/Cells/EpisodeStatusCell.js index 9d6c29567..c48fffcf1 100644 --- a/src/UI/Cells/EpisodeStatusCell.js +++ b/src/UI/Cells/EpisodeStatusCell.js @@ -3,11 +3,12 @@ define( [ 'reqres', + 'backbone', 'Cells/NzbDroneCell', 'History/Queue/QueueCollection', 'moment', 'Shared/FormatHelpers' - ], function (reqres, NzbDroneCell, QueueCollection, Moment, FormatHelpers) { + ], function (reqres, Backbone, NzbDroneCell, QueueCollection, Moment, FormatHelpers) { return NzbDroneCell.extend({ className: 'episode-status-cell', @@ -39,7 +40,7 @@ define( } else { - episodeFile = this.model.get('episodeFile'); + episodeFile = new Backbone.Model(this.model.get('episodeFile')); } this.listenTo(episodeFile, 'change', this._refresh);