summaryrefslogtreecommitdiffstats
path: root/src/patharray.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-02-20 15:29:14 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-02-20 15:29:14 +0100
commit1144404e4bea677c293e9bad273ce273aa1cd885 (patch)
treeec66756c26c653194619a055dffa0234811b55fe /src/patharray.js
parentdfc07aa5be10a2b3749c3aae548d3652f0b780d5 (diff)
downloadsvg.js-1144404e4bea677c293e9bad273ce273aa1cd885.tar.gz
svg.js-1144404e4bea677c293e9bad273ce273aa1cd885.zip
Added clone method to SVG.Array/PointArray/PathArray (#590)
Diffstat (limited to 'src/patharray.js')
-rw-r--r--src/patharray.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/patharray.js b/src/patharray.js
index 479c66f..366729e 100644
--- a/src/patharray.js
+++ b/src/patharray.js
@@ -1,10 +1,11 @@
// Path points array
SVG.PathArray = function(array, fallback) {
- this.constructor.call(this, array, fallback || [['M', 0, 0]])
+ SVG.Array.call(this, array, fallback || [['M', 0, 0]])
}
// Inherit from SVG.Array
SVG.PathArray.prototype = new SVG.Array
+SVG.PathArray.prototype.constructor = SVG.PathArray
SVG.extend(SVG.PathArray, {
// Convert array to string