A fix for Issue 250: merge metaphorically's patch
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@750 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
2e4833de6d
commit
7589875f02
|
@ -3125,19 +3125,7 @@ function BatchCommand(text) {
|
|||
|
||||
// used internally
|
||||
var getLayerName = function(g) {
|
||||
var name = "";
|
||||
if (g && g.tagName == "g") {
|
||||
var len = g.childNodes.length;
|
||||
for (var i = 0; i < len; ++i) {
|
||||
var child = g.childNodes.item(i);
|
||||
// found the <title> element, now append all the
|
||||
if (child && child.tagName == "title") {
|
||||
name = child.textContent;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return name;
|
||||
return $(g,"title").text();
|
||||
};
|
||||
|
||||
this.clear = function() {
|
||||
|
|
Loading…
Reference in New Issue