aboutsummaryrefslogtreecommitdiffstats
path: root/src/mask.js
diff options
context:
space:
mode:
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 4371b37..610608e 100644
--- a/src/mask.js
+++ b/src/mask.js
@@ -19,7 +19,7 @@ SVG.Mask = SVG.invent({
}
, targets: function() {
- return SVG.select('svg [mask*="' +this.id() +'"]')
+ return SVG.select('svg [mask*="' + this.id() + '"]')
}
}
@@ -40,7 +40,7 @@ SVG.extend(SVG.Element, {
var masker = element instanceof SVG.Mask ? element : this.parent().mask().add(element)
// apply mask
- return this.attr('mask', 'url("#' + masker.attr('id') + '")')
+ return this.attr('mask', 'url("#' + masker.id() + '")')
}
// Unmask element
, unmask: function() {