Permalink
Browse files

Merge pull request #294 from aronwoost/patch-1

Make check agains Collection type work
  • Loading branch information...
2 parents d14608b + 27ddfe4 commit 8bfdf0338bc3a1422b72a7a701213d9fc300f3b5 @PaulUithol committed Mar 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 backbone-relational.js
@@ -812,7 +812,7 @@
if ( _.isString( this.collectionType ) ) {
this.collectionType = Backbone.Relational.store.getObjectByName( this.collectionType );
}
- if ( !this.collectionType.prototype instanceof Backbone.Collection ){
+ if ( !(this.collectionType.prototype instanceof Backbone.Collection) ){
throw new Error( '`collectionType` must inherit from Backbone.Collection' );
}

1 comment on commit 8bfdf03

@philfreo
Collaborator

this breaks tests

Please sign in to comment.