diff options
author | Fuzzy <ulima.ums@googlemail.com> | 2015-09-06 21:42:26 +0200 |
---|---|---|
committer | Fuzzy <ulima.ums@googlemail.com> | 2015-09-06 21:42:26 +0200 |
commit | ad9a503ba6526cbc066c01bc3199dd9b8c680b7a (patch) | |
tree | c033d000409a5301e9eb0d5bd631cfb9b9e452e4 /src | |
parent | 4360d3d19170032bb9ae39a9b5734c42545bd50b (diff) | |
parent | 72a4f866b5b460591ec975dc1b4ee285ba22e16a (diff) | |
download | svg.js-ad9a503ba6526cbc066c01bc3199dd9b8c680b7a.tar.gz svg.js-ad9a503ba6526cbc066c01bc3199dd9b8c680b7a.zip |
Merge pull request #370 from dhardtke/master
fix stupid typo that leads to broken gradients
Diffstat (limited to 'src')
-rw-r--r-- | src/svg.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -98,8 +98,8 @@ SVG.adopt = function(node) { // adopt with element-specific settings if (node.nodeName == 'svg') element = node.parentNode instanceof SVGElement ? new SVG.Nested : new SVG.Doc - else if (node.nodeName == 'lineairGradient') // lineair? - element = new SVG.Gradient('lineair') + else if (node.nodeName == 'linearGradient') + element = new SVG.Gradient('linear') else if (node.nodeName == 'radialGradient') element = new SVG.Gradient('radial') else if (SVG[capitalize(node.nodeName)]) @@ -136,4 +136,4 @@ SVG.prepare = function(element) { , poly: draw.polyline().node , path: path } -}
\ No newline at end of file +} |