Fix SVG-Edit Issue 483

Fix http://code.google.com/p/svg-edit/issues/detail?id=483
This commit is contained in:
Jacques Distler 2010-02-13 23:22:36 -06:00
parent afcdc932ff
commit 612fbf2920

View file

@ -5607,7 +5607,7 @@ function BatchCommand(text) {
// are removed // are removed
var deepdive = function(node) { var deepdive = function(node) {
if (node.nodeType == 1) { if (node.nodeType == 1) {
var children = node.children; var children = node.childNodes;
var i = children.length; var i = children.length;
while (i--) { deepdive(children.item(i)); } while (i--) { deepdive(children.item(i)); }
try { try {
@ -5615,7 +5615,7 @@ function BatchCommand(text) {
} catch(e) { console.log(e); } } catch(e) { console.log(e); }
} }
} }
if(!isWebkit) {deepdive(svgcontent);} deepdive(svgcontent);
var content = $(svgcontent); var content = $(svgcontent);