Skip to content

Commit

Permalink
$ Optimized project->users relation
Browse files Browse the repository at this point in the history
  • Loading branch information
masylum authored and saimonmoore committed Dec 27, 2013
1 parent 8e5c207 commit 4ef6d9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backbone.rel.js
Expand Up @@ -119,6 +119,10 @@
return null;
}

if (_.isFunction(options)) {
return options(this.self);
}

if (!options.collection) {
throw Error('No collection was given');
}
Expand Down

0 comments on commit 4ef6d9d

Please sign in to comment.