Fix Issue 259: Allow groups to change attribute values

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@770 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2009-10-05 22:06:01 +00:00
parent eaba474023
commit 73160a7da0

View File

@@ -3843,7 +3843,7 @@ function BatchCommand(text) {
var elem = elems[i];
if (elem == null) continue;
// only allow the transform attribute to change on <g> elements, slightly hacky
if (elem.tagName == "g" && attr != "transform") continue;
if (elem.tagName == "g" && attr == "transform") continue;
var oldval = attr == "#text" ? elem.textContent : elem.getAttribute(attr);
if (oldval == null) oldval = "";
if (oldval != newValue) {