diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-24 10:58:19 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-24 10:58:19 +0100 |
commit | a749f7aa6e37e22cc02c5ad29647e1783bb75150 (patch) | |
tree | e941aa06f9d1cf0f5c98fc1567ab008ca56ed6e6 /dist/svg.js | |
parent | 459a56e40e5f6d3ce08d3783c1d75be1963475e1 (diff) | |
download | svg.js-a749f7aa6e37e22cc02c5ad29647e1783bb75150.tar.gz svg.js-a749f7aa6e37e22cc02c5ad29647e1783bb75150.zip |
fixed `SVG.PathArray.parse` that did not correctly parsed flat arrays
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dist/svg.js b/dist/svg.js index 290f5e2..df7c523 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -6,7 +6,7 @@ * @copyright Wout Fierens <wout@mick-wout.com> * @license MIT * -* BUILT: Tue Mar 21 2017 18:10:30 GMT+0100 (Mitteleuropäische Zeit) +* BUILT: Fri Mar 24 2017 10:55:31 GMT+0100 (Mitteleuropäische Zeit) */; (function(root, factory) { if (typeof define === 'function' && define.amd) { @@ -789,7 +789,7 @@ SVG.extend(SVG.PathArray, { }else{ array = array.reduce(function(prev, curr){ - return [].concat.apply(prev, curr) + return [].concat.call(prev, curr) }, []) } @@ -2236,9 +2236,9 @@ SVG.BBox = SVG.invent({ if (!document.documentElement.contains){ // This is IE - it does not support contains() for top-level SVGs - var topParent = element.node; + var topParent = element.node while (topParent.parentNode){ - topParent = topParent.parentNode; + topParent = topParent.parentNode } if (topParent != document) throw new Exception('Element not in the dom') } else { |