aboutsummaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
authorWout Fierens <wout@impinc.co.uk>2014-05-03 11:24:23 +0200
committerWout Fierens <wout@impinc.co.uk>2014-05-03 11:24:23 +0200
commit8e44d115af4907276cb23567dc2d2a10d0efdf2f (patch)
treeb8cf41e5bbcc665e94d040515cdb4cec9872c3f5 /src/element.js
parent63bf7b9d4dace89d0b6648d6d6af5df47db19a18 (diff)
parentcd4bf2af4e974552649646ffd1daaa0219f26ddd (diff)
downloadsvg.js-8e44d115af4907276cb23567dc2d2a10d0efdf2f.tar.gz
svg.js-8e44d115af4907276cb23567dc2d2a10d0efdf2f.zip
Merge pull request #179 from Shtong/master
Fixed a bug where Element.style() would not save empty values in IE11
Diffstat (limited to 'src/element.js')
-rwxr-xr-xsrc/element.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/element.js b/src/element.js
index 1e86104..52f9ad7 100755
--- a/src/element.js
+++ b/src/element.js
@@ -303,7 +303,7 @@ SVG.Element = SVG.invent({
}
} else {
- this.node.style[camelCase(s)] = v === null || SVG.regex.isBlank.test(v) ? null : v
+ this.node.style[camelCase(s)] = v === null || SVG.regex.isBlank.test(v) ? '' : v
}
return this