fix: no property or method remove on IE11

- fixes #40
This commit is contained in:
Ivan Mikheykin
2019-02-21 15:32:05 +03:00
parent 3ffe5554f3
commit a1a06ea78a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
}).each(function (d, i) {
var thisWidth = this.getBBox().width;
textWidth.push(thisWidth);
this.remove(); // remove them just after displaying them
this.parentElement.removeChild(this); // remove them just after displaying them in IE friendly way
});
var legendWidth = Math.floor(_.min([graphWidth - 30, (_.max(textWidth) + 3) * valuesNumber]));
+1 -1
View File
File diff suppressed because one or more lines are too long