summaryrefslogtreecommitdiffstats
path: root/src/svg.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-06-11 15:27:07 +0200
committerwout <wout@impinc.co.uk>2014-06-11 15:27:07 +0200
commite3a0f3a887a398a87356f63253830e1baf67823e (patch)
treed2b13c0dc0b4d40270cda7e1968860325d6c49b8 /src/svg.js
parent791f4368403571d5e824d91f3562c63baae356a8 (diff)
downloadsvg.js-e3a0f3a887a398a87356f63253830e1baf67823e.tar.gz
svg.js-e3a0f3a887a398a87356f63253830e1baf67823e.zip
Bumped to version 1.0.0-rc.7
Look at change log for full overview of changes.
Diffstat (limited to 'src/svg.js')
-rwxr-xr-xsrc/svg.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/svg.js b/src/svg.js
index 07afa7a..e0e5b44 100755
--- a/src/svg.js
+++ b/src/svg.js
@@ -1,6 +1,6 @@
// The main wrapping element
-this.SVG = function(element) {
+var SVG = this.SVG = function(element) {
if (SVG.supported) {
element = new SVG.Doc(element)
@@ -65,7 +65,7 @@ SVG.get = function(id) {
SVG.prepare = function(element) {
/* select document body and create invisible svg element */
var body = document.getElementsByTagName('body')[0]
- , draw = (body ? new SVG.Doc(body) : element.nested()).size(2, 2)
+ , draw = (body ? new SVG.Doc(body) : element.nested()).size(2, 0)
, path = SVG.create('path')
/* insert parsers */
@@ -86,4 +86,4 @@ SVG.supported = (function() {
!! document.createElementNS(SVG.ns,'svg').createSVGRect
})()
-if (!SVG.supported) return false \ No newline at end of file
+if (!SVG.supported) return false