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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user