summaryrefslogtreecommitdiff
path: root/src/client/view
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-08-18 09:25:05 +0300
committerAlon Levy <alon@pobox.com>2015-08-18 09:27:50 +0300
commitfa7784b0014db0a33823a9ac012dc6e022de5033 (patch)
tree6cde5d4e36fb7c978bd88e17cb45645ef61e3d73 /src/client/view
parent2907b181513a66a58ae93dbb55a46572fb6fcf00 (diff)
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.
Diffstat (limited to 'src/client/view')
-rw-r--r--src/client/view/graph_view.js4
1 files changed, 2 insertions, 2 deletions
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;