summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-12-11 16:30:37 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-12-11 16:30:37 +0100
commitbe3d3e8209635226f71f2e6e8ec5b0775279f53b (patch)
tree89f5eda6a0fe743b26690cec382e2a65b0196462 /src
parentb564704285fd27194e6420250275682bd6363557 (diff)
parent291892690aa68d6a3fae2aa65597b38e8315da42 (diff)
downloadsvg.js-be3d3e8209635226f71f2e6e8ec5b0775279f53b.tar.gz
svg.js-be3d3e8209635226f71f2e6e8ec5b0775279f53b.zip
Merge pull request #430 from rdfriedl/master
fixes for issue #429
Diffstat (limited to 'src')
-rw-r--r--src/clip.js2
-rw-r--r--src/mask.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/clip.js b/src/clip.js
index 20f83f6..9b5443e 100644
--- a/src/clip.js
+++ b/src/clip.js
@@ -18,7 +18,7 @@ SVG.ClipPath = SVG.invent({
for (var i = this.targets.length - 1; i >= 0; i--)
if (this.targets[i])
this.targets[i].unclip()
- delete this.targets
+ this.targets = [];
// remove clipPath from parent
this.parent().removeElement(this)
diff --git a/src/mask.js b/src/mask.js
index 197fd06..4a6047a 100644
--- a/src/mask.js
+++ b/src/mask.js
@@ -18,7 +18,7 @@ SVG.Mask = SVG.invent({
for (var i = this.targets.length - 1; i >= 0; i--)
if (this.targets[i])
this.targets[i].unmask()
- delete this.targets
+ this.targets = [];
// remove mask from parent
this.parent().removeElement(this)