aboutsummaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-07-01 08:26:18 +0100
committerwout <wout@impinc.co.uk>2013-07-01 08:26:18 +0100
commitb9b4af505a8f6abae7167bdff39d88c484d51aa7 (patch)
tree72a428f613b7046c32c92b0a82fc5449adfd4b1c /dist/svg.js
parent578c2bd6dffed8a636e64dbfbfedd3eb53539665 (diff)
downloadsvg.js-b9b4af505a8f6abae7167bdff39d88c484d51aa7.tar.gz
svg.js-b9b4af505a8f6abae7167bdff39d88c484d51aa7.zip
Fix in SVG.Number for IE0.24
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js24
1 files changed, 13 insertions, 11 deletions
diff --git a/dist/svg.js b/dist/svg.js
index 4707933..9fa35c8 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -1,4 +1,4 @@
-/* svg.js v0.23-1-ge4fb852 - svg regex default color number viewbox bbox rbox element container fx event defs group arrange mask clip pattern gradient use doc shape rect ellipse line poly path plotable image text nested sugar - svgjs.com/license */
+/* svg.js v0.23-2-g578c2bd - svg regex default color number viewbox bbox rbox element container fx event defs group arrange mask clip pattern gradient use doc shape rect ellipse line poly path plotable image text nested sugar - svgjs.com/license */
;(function() {
this.SVG = function(element) {
@@ -261,16 +261,18 @@
case 'string':
var match = value.match(SVG.regex.unit)
- /* make value numeric */
- this.value = parseFloat(match[1])
-
- /* normalize percent value */
- if (match[2] == '%')
- this.value /= 100
-
- /* store unit */
- this.unit = match[2]
-
+ if (match) {
+ /* make value numeric */
+ this.value = parseFloat(match[1])
+
+ /* normalize percent value */
+ if (match[2] == '%')
+ this.value /= 100
+
+ /* store unit */
+ this.unit = match[2]
+ }
+
break
default:
if (value instanceof SVG.Number) {