Update parser.js

This commit is contained in:
asturur 2014-07-18 20:42:21 +02:00
parent da99193ad6
commit 12f5c6356e

View file

@ -403,8 +403,7 @@
* Add a <g> element that envelop all SCG elements and makes the viewbox transformMatrix descend on all elements
*/
function addSvgTransform(doc, matrix) {
var el = document.createElement('g'),
nodelist = doc.childNodes;
var el = document.createElement('g');
while (doc.firstChild != null) {
var node = doc.firstChild;
el.appendChild(node);