mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-08 09:45:48 +00:00
Set templateHelpers in initialize to stop it from being attached to __proto__
This commit is contained in:
@@ -70,14 +70,13 @@ define(
|
||||
}
|
||||
],
|
||||
|
||||
templateHelpers: {},
|
||||
|
||||
initialize: function (options) {
|
||||
|
||||
if (!options.episodeCollection) {
|
||||
throw 'episodeCollection is needed';
|
||||
}
|
||||
|
||||
this.templateHelpers = {};
|
||||
this.episodeCollection = options.episodeCollection.bySeason(this.model.get('seasonNumber'));
|
||||
this.series = options.series;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user