diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-16 19:43:20 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-16 19:43:20 +0100 |
commit | 60236e07f161e23772922eed2e5c489b6964a712 (patch) | |
tree | 85a3b07be07e722212a3a63fd000faf0cf64c1d6 /src/clip.js | |
parent | 5ed54e9fb58f6b17f897157226df7c91a2976943 (diff) | |
download | svg.js-60236e07f161e23772922eed2e5c489b6964a712.tar.gz svg.js-60236e07f161e23772922eed2e5c489b6964a712.zip |
removing SVG.Set completely
Diffstat (limited to 'src/clip.js')
-rw-r--r-- | src/clip.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/clip.js b/src/clip.js index 70e2499..dd2f7b7 100644 --- a/src/clip.js +++ b/src/clip.js @@ -10,14 +10,12 @@ SVG.ClipPath = SVG.invent({ // Unclip all clipped elements and remove itself remove: function() { // unclip all targets - this.targets().each(function() { - this.unclip() + this.targets().forEach(function(el) { + el.unclip() }) // remove clipPath from parent - this.parent().removeElement(this) - - return this + return SVG.Element.prototype.remove.call(this) } , targets: function() { |