aboutsummaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/element.js')
-rw-r--r--src/element.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/element.js b/src/element.js
index 24770b1..1e3dcb0 100644
--- a/src/element.js
+++ b/src/element.js
@@ -107,15 +107,15 @@ SVG.Element = SVG.invent({
}
// Show element
, show: function() {
- return this.style('display', '')
+ return this.css('display', '')
}
// Hide element
, hide: function() {
- return this.style('display', 'none')
+ return this.css('display', 'none')
}
// Is element visible?
, visible: function() {
- return this.style('display') != 'none'
+ return this.css('display') != 'none'
}
// Return id on string conversion
, toString: function() {