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

pull/2/head
Mark McDowall 11 years ago
parent 46e3dafd44
commit a39125eb6c

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

Loading…
Cancel
Save