Skip to content

Commit

Permalink
fixed bug involving using _.find where we should have been using _.co…
Browse files Browse the repository at this point in the history
…ntains
  • Loading branch information
kbjr committed Oct 22, 2014
1 parent 8000ba5 commit d4daf8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cloak/model.js
Expand Up @@ -38,7 +38,7 @@ var Model = module.exports = AppObject.extend(modelStore.methods, {
// Keep track of local changes
this._changedLocally = [ ];
this.on(cloak.event('change.*'), function(value, old, attr) {
if (! _.find(this._changedLocally, attr)) {
if (! _.contains(this._changedLocally, attr)) {
this._changedLocally.push(attr);
}
});
Expand Down

0 comments on commit d4daf8a

Please sign in to comment.