summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}