Object.assign -> _.extend(), for to make Chrome 45 and below work
FREEBIE
This commit is contained in:
parent
1e8ae774a2
commit
d1fa28b706
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue