1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-26 09:37:12 +00:00

Set templateHelpers in initialize to stop it from being attached to __proto__

This commit is contained in:
Mark McDowall 2013-09-05 23:18:25 -07:00
parent 46e3dafd44
commit a39125eb6c

View file

@ -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;