Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LiveQuery constrains matching fix #2357

Merged
merged 7 commits into from
Jul 23, 2016
3 changes: 3 additions & 0 deletions src/LiveQuery/QueryTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ function matchesQuery(object: any, query: any): boolean {
* Determines whether an object matches a single key's constraints
*/
function matchesKeyConstraints(object, key, constraints) {
if (constraints === null) {
return false;
}
var i;
if (key === '$or') {
for (i = 0; i < constraints.length; i++) {
Expand Down