aboutsummaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-25 21:33:50 +0100
committerwout <wout@impinc.co.uk>2013-03-25 21:33:50 +0100
commit7b0ba313154e6990fe0d11caa981dc4102193e5e (patch)
treed9940c0af72b587adc3f0b246dc95e021026d957 /src/element.js
parent264c100153fc45cedf94a8cc8a0174fae12e1fe8 (diff)
downloadsvg.js-7b0ba313154e6990fe0d11caa981dc4102193e5e.tar.gz
svg.js-7b0ba313154e6990fe0d11caa981dc4102193e5e.zip
Updated README
Diffstat (limited to 'src/element.js')
-rw-r--r--src/element.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/element.js b/src/element.js
index b8cbf50..61f77ff 100644
--- a/src/element.js
+++ b/src/element.js
@@ -255,7 +255,7 @@ SVG.extend(SVG.Element, {
, style: function(s, v) {
if (arguments.length == 0) {
/* get full style */
- return this.attr('style')
+ return this.attr('style') || ''
} else if (arguments.length < 2) {
/* apply every style individually if an object is passed */