aboutsummaryrefslogtreecommitdiffstats
path: root/src/mask.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-05-26 20:59:57 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-05-26 20:59:57 +0200
commit7990dc47fda4f3b850c18318775ab108c2aff8f5 (patch)
tree9a2ed0eba0a75765e20193e0f3b51d2286cddf62 /src/mask.js
parent07d1e87bb4843f954e9340a6206df34d294a847a (diff)
downloadsvg.js-7990dc47fda4f3b850c18318775ab108c2aff8f5.tar.gz
svg.js-7990dc47fda4f3b850c18318775ab108c2aff8f5.zip
fixed issues in SVG.Doc and SVG.Mask when cloning(#782)
Diffstat (limited to 'src/mask.js')
-rw-r--r--src/mask.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mask.js b/src/mask.js
index 51e61e9..7d90861 100644
--- a/src/mask.js
+++ b/src/mask.js
@@ -20,8 +20,8 @@ SVG.Mask = SVG.invent({
this.targets[i].unmask()
this.targets = []
- // remove mask from parent
- this.parent().removeElement(this)
+ // remove mask from parent
+ SVG.Element.prototype.remove.call(this)
return this
}