aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Mask.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/Mask.js')
-rw-r--r--src/elements/Mask.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/elements/Mask.js b/src/elements/Mask.js
index 64caca5..3d2119e 100644
--- a/src/elements/Mask.js
+++ b/src/elements/Mask.js
@@ -33,6 +33,10 @@ registerMethods({
},
Element: {
// Distribute mask to svg element
+ masker () {
+ return this.reference('mask')
+ },
+
maskWith (element) {
// use given mask or create a new one
var masker = element instanceof Mask
@@ -46,10 +50,6 @@ registerMethods({
// Unmask element
unmask () {
return this.attr('mask', null)
- },
-
- masker () {
- return this.reference('mask')
}
}
})