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
|
// used internally
|
||||||
var getLayerName = function(g) {
|
var getLayerName = function(g) {
|
||||||
var name = "";
|
return $(g,"title").text();
|
||||||
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;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.clear = function() {
|
this.clear = function() {
|
||||||
|
|
Loading…
Reference in New Issue