Commit b3dc68d3 authored by Stephen Sawchuk's avatar Stephen Sawchuk

Merge pull request #689 from OscarGodson/patch-1

Ticket #688 - Fix for Store#find returning on first prop match
parents 793a6763 e7bd2b90
...@@ -50,9 +50,13 @@ ...@@ -50,9 +50,13 @@
var todos = JSON.parse(localStorage[this._dbName]).todos; var todos = JSON.parse(localStorage[this._dbName]).todos;
callback.call(this, todos.filter(function (todo) { callback.call(this, todos.filter(function (todo) {
var match = true;
for (var q in query) { for (var q in query) {
return query[q] === todo[q]; if (query[q] !== todo[q]) {
match = false;
}
} }
return match;
})); }));
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment