Fix getting the node ID in wave gadget

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@118 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-06-12 12:22:56 +00:00
parent 50c81a5d36
commit a9b4731df6
1 changed files with 3 additions and 2 deletions

View File

@ -187,7 +187,8 @@ SVG-edit Google Wave Gadget @ <a href="http://svg-edit.googlecode.com/" target="
svgCanvas.each(function(e) {
// 'this' is the SVG DOM element node (ellipse, rect, etc)
// 'e' is an integer describing the position within the document
var v = state.get(this.nodeId);
var k = this.id;
var v = state.get(k);
if (v) {
var ob;
eval("ob=" + v); // FIXME: Yes, I'm using eval... Dirty, dirty..
@ -197,7 +198,7 @@ SVG-edit Google Wave Gadget @ <a href="http://svg-edit.googlecode.com/" target="
var node = svgdoc.getElementById(k);
if (node) node.parentNode.removeChild(node);
}
keys.remove(this.nodeId);
keys.remove(k);
} else {
this.parentNode.removeChild(this);
}