From 5716582ea20f5360888746d4220ca7ff9d279d43 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 4 Dec 2013 15:26:52 +0100 Subject: fixed type error in equality test --- threads.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'threads.js') 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; } -- cgit v1.3.1