Skip to content

Commit

Permalink
empty attributes of binders
Browse files Browse the repository at this point in the history
  • Loading branch information
azproduction committed May 29, 2013
1 parent d8ff3d5 commit 61b023b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rivets-backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
var root = getKeyPathRoot(model, keypath);
model = root.model;

if (!(model instanceof Model)) {
return model;
}

if (arguments.length === 2) {
return model.get(root.key);
}
Expand Down

0 comments on commit 61b023b

Please sign in to comment.