From fa7784b0014db0a33823a9ac012dc6e022de5033 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 18 Aug 2015 09:25:05 +0300 Subject: client: safari support: s/Number.isNaN/isNaN/ Number.isNaN is slated to be added in ES6, support in safari/chrome is non standard, and we don't have to. --- src/client/view/graph_view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 93e774aa..9ee59c03 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -964,11 +964,11 @@ function GraphView(spec) { } function check_for_nan(x) { - if (Number.isNaN(x)) { + if (isNaN(x)) { console.log('nan problem'); layout.stop(); } - return Number.isNaN(x); + return isNaN(x); } var newnodes=1; -- cgit v1.3.1