Browse Source

Fix duplicate assets when added with the same `src`

pull/6067/head
Artur Arseniev 2 years ago
parent
commit
965593be28
  1. 3
      src/domain_abstract/model/TypeableCollection.ts

3
src/domain_abstract/model/TypeableCollection.ts

@ -27,6 +27,9 @@ const TypeableCollection = {
const model = new Model(attrs, { ...options, em });
model.typeView = View;
// As we're using a dynamic model function, backbone collection is unable to
// get `model.prototype.idAttribute`
this.model.prototype = Model.prototype;
return model;
};
const init = this.init && this.init.bind(this);

Loading…
Cancel
Save