Object.assign -> _.extend(), for to make Chrome 45 and below work

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-19 12:19:06 -07:00
parent 1e8ae774a2
commit d1fa28b706

View file

@ -20,7 +20,7 @@
addOne: function(model) {
if (this.itemView) {
var options = Object.assign({}, this.options.toInclude, {model: model});
var options = _.extend({}, this.options.toInclude, {model: model});
var view = new this.itemView(options);
this.$el.append(view.render().el);
this.$el.trigger('add');