Minor nit fix

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@702 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-09-24 03:14:43 +00:00
parent e2f68c00e9
commit 10cd262372
1 changed files with 2 additions and 2 deletions

View File

@ -2642,7 +2642,7 @@ function BatchCommand(text) {
for (var i = 0; i < numchildren; ++i) { for (var i = 0; i < numchildren; ++i) {
var child = svgzoom.childNodes.item(i); var child = svgzoom.childNodes.item(i);
// for each g, find its layer name // for each g, find its layer name
if (child) { if (child && child.nodeType == 1) {
if (child.tagName == "g") { if (child.tagName == "g") {
var name = getLayerName(child); var name = getLayerName(child);
// store layer and name in global variable // store layer and name in global variable
@ -2653,7 +2653,7 @@ function BatchCommand(text) {
walkTree(child, function(e){e.setAttribute("style", "pointer-events:none");}); walkTree(child, function(e){e.setAttribute("style", "pointer-events:none");});
} }
} }
else if (child.nodeType == 1) { else {
orphans.push(child); orphans.push(child);
} }
} }