Skip to content

Commit 83ce3d8

Browse files
author
Vlad Balin
committed
createSubset ddn't resolved collection
1 parent bac63cd commit 83ce3d8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

nestedtypes.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/collection.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ module.exports = Backbone.Collection.extend( {
130130

131131
createSubset : function( models, options ){
132132
var SubsetOf = this.constructor.subsetOf( this ).createAttribute().type;
133-
return new SubsetOf( models, options );
133+
var subset = new SubsetOf( models, options );
134+
subset.resolve( this );
135+
return subset;
134136
}
135137
}, {
136138
// Cache for subsetOf collection subclass.

0 commit comments

Comments
 (0)