aboutsummaryrefslogtreecommitdiffstats
path: root/src/svg.js
diff options
context:
space:
mode:
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