Commit 4af11862 authored by Tristan Cavelier's avatar Tristan Cavelier

simplequery.js passes jslint now

parent a68b440b
...@@ -94,17 +94,18 @@ SimpleQuery.prototype["="] = function (object_value, comparison_value, ...@@ -94,17 +94,18 @@ SimpleQuery.prototype["="] = function (object_value, comparison_value,
if (comparison_value === undefined) { if (comparison_value === undefined) {
if (value === undefined) { if (value === undefined) {
return true; return true;
} else {
return false;
} }
return false;
} }
if (value === undefined) { if (value === undefined) {
return false; return false;
} }
if (convertStringToRegExp( if (
comparison_value.toString(), convertStringToRegExp(
wildcard_character comparison_value.toString(),
).test(value.toString())) { wildcard_character
).test(value.toString())
) {
return true; return true;
} }
} }
...@@ -134,17 +135,18 @@ SimpleQuery.prototype["!="] = function (object_value, comparison_value, ...@@ -134,17 +135,18 @@ SimpleQuery.prototype["!="] = function (object_value, comparison_value,
if (comparison_value === undefined) { if (comparison_value === undefined) {
if (value === undefined) { if (value === undefined) {
return false; return false;
} else {
return true;
} }
return true;
} }
if (value === undefined) { if (value === undefined) {
return true; return true;
} }
if (convertStringToRegExp( if (
comparison_value.toString(), convertStringToRegExp(
wildcard_character comparison_value.toString(),
).test(value.toString())) { wildcard_character
).test(value.toString())
) {
return false; return false;
} }
} }
......
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