From bc90ffecc8b483dcf53bf90d7442bc66ad808dbf Mon Sep 17 00:00:00 2001 From: Tom Joseph Date: Sat, 13 Feb 2016 21:51:15 -0500 Subject: [PATCH 1/4] Use parseFloat instead of Number.parseFloat Internet Explorer does not support the ES6 Number.parseFloat (see http://caniuse.com/#feat=es6-number). Instead, substitute the regular parseFloat method. --- lib/timeline/component/DataAxis.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/timeline/component/DataAxis.js b/lib/timeline/component/DataAxis.js index 0f3ec598..61055666 100644 --- a/lib/timeline/component/DataAxis.js +++ b/lib/timeline/component/DataAxis.js @@ -29,12 +29,12 @@ function DataAxis (body, options, svg, linegraphOptions) { alignZeros: true, left:{ range: {min:undefined,max:undefined}, - format: function (value) {return ''+Number.parseFloat(value.toPrecision(3));}, + format: function (value) {return ''+parseFloat(value.toPrecision(3));}, title: {text:undefined,style:undefined} }, right:{ range: {min:undefined,max:undefined}, - format: function (value) {return ''+Number.parseFloat(value.toPrecision(3));}, + format: function (value) {return ''+parseFloat(value.toPrecision(3));}, title: {text:undefined,style:undefined} } }; From b11ab7756f33e784a78a62fe7e7fa4060bb20edc Mon Sep 17 00:00:00 2001 From: jos Date: Mon, 15 Feb 2016 10:11:51 +0100 Subject: [PATCH 2/4] Updated history --- HISTORY.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HISTORY.md b/HISTORY.md index 75c77209..0fa3b1e6 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -11,6 +11,8 @@ http://visjs.org ### Graph2d - Fixed #1630: method `getDataRange` was wrongly called `getItemRange` in docs. +- Fixed #1655: use parseFloat instead of Number.parseFloat, as the latter is + not supported in IE. ### Graph3d From d7382cd7eb86649e2129688f19e813ee1763b4ba Mon Sep 17 00:00:00 2001 From: jos Date: Mon, 15 Feb 2016 10:55:08 +0100 Subject: [PATCH 3/4] Updated history --- HISTORY.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 0fa3b1e6..992a29bc 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -12,7 +12,7 @@ http://visjs.org - Fixed #1630: method `getDataRange` was wrongly called `getItemRange` in docs. - Fixed #1655: use parseFloat instead of Number.parseFloat, as the latter is - not supported in IE. + not supported in IE. Thanks @ttjoseph. ### Graph3d From 02de079d19a7f07300b1424a4634571a9e5b64e0 Mon Sep 17 00:00:00 2001 From: jos Date: Tue, 16 Feb 2016 16:02:13 +0100 Subject: [PATCH 4/4] Fixed #1661: main files for bower should not be minified --- bower.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bower.json b/bower.json index 7da02ad8..2b709948 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "vis", - "main": ["dist/vis.min.js", "dist/vis.min.css"], + "main": ["dist/vis.js", "dist/vis.css"], "description": "A dynamic, browser-based visualization library.", "homepage": "http://visjs.org/", "license": ["Apache-2.0", "MIT"],