Fix getting the node ID in wave gadget
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@118 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
50c81a5d36
commit
a9b4731df6
|
@ -187,7 +187,8 @@ SVG-edit Google Wave Gadget @ <a href="http://svg-edit.googlecode.com/" target="
|
||||||
svgCanvas.each(function(e) {
|
svgCanvas.each(function(e) {
|
||||||
// 'this' is the SVG DOM element node (ellipse, rect, etc)
|
// 'this' is the SVG DOM element node (ellipse, rect, etc)
|
||||||
// 'e' is an integer describing the position within the document
|
// '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) {
|
if (v) {
|
||||||
var ob;
|
var ob;
|
||||||
eval("ob=" + v); // FIXME: Yes, I'm using eval... Dirty, dirty..
|
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);
|
var node = svgdoc.getElementById(k);
|
||||||
if (node) node.parentNode.removeChild(node);
|
if (node) node.parentNode.removeChild(node);
|
||||||
}
|
}
|
||||||
keys.remove(this.nodeId);
|
keys.remove(k);
|
||||||
} else {
|
} else {
|
||||||
this.parentNode.removeChild(this);
|
this.parentNode.removeChild(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue