Fix Issue 259: Allow groups to change attribute values
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@770 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
eaba474023
commit
73160a7da0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue