A fix for Issue 250: merge metaphorically's patch

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@750 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-10-02 06:08:45 +00:00
parent 2e4833de6d
commit 7589875f02
1 changed files with 1 additions and 13 deletions

View File

@ -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() {