mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
removed leak from signalr
This commit is contained in:
parent
5327068557
commit
66ce8e8b27
3 changed files with 61 additions and 56 deletions
|
@ -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
|
||||
}));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue