aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXavier Roger-Machart <xrm@omegacube.fr>2014-05-02 17:17:41 +0200
committerXavier Roger-Machart <xrm@omegacube.fr>2014-05-02 17:17:41 +0200
commitcd4bf2af4e974552649646ffd1daaa0219f26ddd (patch)
treeb8cf41e5bbcc665e94d040515cdb4cec9872c3f5 /src
parent63bf7b9d4dace89d0b6648d6d6af5df47db19a18 (diff)
downloadsvg.js-cd4bf2af4e974552649646ffd1daaa0219f26ddd.tar.gz
svg.js-cd4bf2af4e974552649646ffd1daaa0219f26ddd.zip
Fixed a bug where Element.style() would not save empty values in IE11
Diffstat (limited to 'src')
-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