From 158eb2eec44710a2cbdeaae455e603106bf04c72 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Sun, 13 Sep 2009 12:55:15 +0000 Subject: [PATCH] Fix Issue 194: svgzoom is emptied, not svgroot git-svn-id: http://svg-edit.googlecode.com/svn/trunk@631 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 64e5a9d7..5b096be8 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -548,6 +548,8 @@ function BatchCommand(text) { return shape; }; + // TODO: declare the variables and set them as null, then move this setup stuff to + // an initialization function - probably just use clear() var canvas = this; var container = c; var svgns = "http://www.w3.org/2000/svg"; @@ -2516,8 +2518,8 @@ function BatchCommand(text) { }; this.clear = function() { - var nodes = svgroot.childNodes; - var len = svgroot.childNodes.length; + var nodes = svgzoom.childNodes; + var len = svgzoom.childNodes.length; var i = 0; current_poly_pts = []; this.clearSelection(); @@ -3513,8 +3515,6 @@ function BatchCommand(text) { } this.moveSelectedElements(dx,dy); }; - - this.getCurrentZoom = function() { return this.current_zoom; } } // Static class for various utility functions