Skip to content

Commit

Permalink
fix remove function for filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuzzyma committed Dec 24, 2018
1 parent f3636a7 commit 3277a60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/svg.filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class Filter extends Element {
// Unmask all masked elements and remove itself
remove () {
// unmask all targets
this.targets().unfilter()
this.targets().each('unfilter')

// remove mask from parent
return super.remove()
Expand Down Expand Up @@ -120,8 +120,6 @@ const updateFunctions = {
},
// Gaussian Blur effect
gaussianBlur: function (x = 0, y = x) {
x = x || 0
y = y || x || 0
this.attr('stdDeviation', x + ' ' + y)
},
// Morphology effect
Expand Down

0 comments on commit 3277a60

Please sign in to comment.