1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00

removed leak from signalr

This commit is contained in:
Keivan Beigi
2013-08-21 12:07:28 -07:00
parent 5327068557
commit 66ce8e8b27
3 changed files with 61 additions and 56 deletions
+12 -7
View File
@@ -56,7 +56,7 @@ define(
var fanArt = this._getFanArt();
if (fanArt) {
$.backstretch(fanArt);
this._backstrech = $.backstretch(fanArt);
}
else {
$('body').removeClass('backdrop');
@@ -78,7 +78,12 @@ define(
},
onClose: function () {
$('.backstretch').remove();
if (this._backstrech) {
this._backstrech.destroy();
delete this._backstrech;
}
$('body').removeClass('backdrop');
},
@@ -120,8 +125,8 @@ define(
},
element : this.ui.refresh,
leaveIcon : true,
context: this,
onSuccess: this._showSeasons
context : this,
onSuccess : this._showSeasons
});
},
@@ -170,15 +175,15 @@ define(
series : self.model
});
self.episodeCollection.BindSignalR({
/* self.episodeCollection.bindSignalR({
onReceived: seasonCollectionView.onEpisodeGrabbed,
context : seasonCollectionView
});
});*/
self.seasons.show(seasonCollectionView);
self.seasonMenu.show(new SeasonMenuCollectionView({
collection: self.seasonCollection,
collection : self.seasonCollection,
episodeCollection: self.episodeCollection
}));
});