Fix Issue 194: svgzoom is emptied, not svgroot

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@631 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2009-09-13 12:55:15 +00:00
parent 14725fb8bf
commit 158eb2eec4

View File

@@ -548,6 +548,8 @@ function BatchCommand(text) {
return shape; 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 canvas = this;
var container = c; var container = c;
var svgns = "http://www.w3.org/2000/svg"; var svgns = "http://www.w3.org/2000/svg";
@@ -2516,8 +2518,8 @@ function BatchCommand(text) {
}; };
this.clear = function() { this.clear = function() {
var nodes = svgroot.childNodes; var nodes = svgzoom.childNodes;
var len = svgroot.childNodes.length; var len = svgzoom.childNodes.length;
var i = 0; var i = 0;
current_poly_pts = []; current_poly_pts = [];
this.clearSelection(); this.clearSelection();
@@ -3513,8 +3515,6 @@ function BatchCommand(text) {
} }
this.moveSelectedElements(dx,dy); this.moveSelectedElements(dx,dy);
}; };
this.getCurrentZoom = function() { return this.current_zoom; }
} }
// Static class for various utility functions // Static class for various utility functions