mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-18 02:21:07 +00:00
Update parser.js
This commit is contained in:
parent
da99193ad6
commit
12f5c6356e
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue