mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 01:38:24 +00:00
Set templateHelpers in initialize to stop it from being attached to __proto__
This commit is contained in:
parent
46e3dafd44
commit
a39125eb6c
1 changed files with 1 additions and 2 deletions
|
@ -70,14 +70,13 @@ define(
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
templateHelpers: {},
|
|
||||||
|
|
||||||
initialize: function (options) {
|
initialize: function (options) {
|
||||||
|
|
||||||
if (!options.episodeCollection) {
|
if (!options.episodeCollection) {
|
||||||
throw 'episodeCollection is needed';
|
throw 'episodeCollection is needed';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.templateHelpers = {};
|
||||||
this.episodeCollection = options.episodeCollection.bySeason(this.model.get('seasonNumber'));
|
this.episodeCollection = options.episodeCollection.bySeason(this.model.get('seasonNumber'));
|
||||||
this.series = options.series;
|
this.series = options.series;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue