Skip to content

Commit

Permalink
Whoops, leaking 'attributes' var
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulUithol committed Jan 2, 2012
1 parent 7efecad commit 9b4893f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
.idea
node_modules
3 changes: 2 additions & 1 deletion backbone-relational.js
Expand Up @@ -1000,7 +1000,8 @@
Backbone.Relational.eventQueue.block();

// Duplicate backbone's behavior to allow separate key/value parameters, instead of a single 'attributes' object
if (_.isObject( key ) ) {
var attributes;
if ( _.isObject( key ) ) {
attributes = key;
options = value;
}
Expand Down

0 comments on commit 9b4893f

Please sign in to comment.