summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-12-04 15:26:52 +0100
committerjmoenig <jens@moenig.org>2013-12-04 15:26:52 +0100
commit5716582ea20f5360888746d4220ca7ff9d279d43 (patch)
treeabe866ca3c87a7d2dba6fa13bd7383e441b095df /threads.js
parentd9b9c6bad1b2435e06b8066857a2fb3d1ce03411 (diff)
downloadsnap-yow-5716582ea20f5360888746d4220ca7ff9d279d43.tar.gz
snap-yow-5716582ea20f5360888746d4220ca7ff9d279d43.zip
fixed type error in equality test
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/threads.js b/threads.js
index 9727e18..423dc3b 100644
--- a/threads.js
+++ b/threads.js
@@ -106,7 +106,7 @@ function snapEquals(a, b) {
// check for special values before coercing to numbers
if (isNaN(x) || isNaN(y) ||
[a, b].some(function (any) {return contains(specials, any) ||
- (any.indexOf(' ') > -1); })) {
+ (isString(any) && (any.indexOf(' ') > -1)); })) {
x = a;
y = b;
}