mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-01 21:30:24 +00:00
Update parser.js
Restored parseUseDirectives functionality, maintaining getElementsByTagName and changing logic of running trought the list.
This commit is contained in:
parent
481b40549e
commit
85ba574458
1 changed files with 2 additions and 2 deletions
|
|
@ -371,8 +371,8 @@
|
|||
*/
|
||||
function parseUseDirectives(doc) {
|
||||
var nodelist = doc.getElementsByTagName('use');
|
||||
for (var i = 0, len = nodelist.length; i < len; i++) {
|
||||
var el = nodelist[i],
|
||||
while (nodelist.length) {
|
||||
var el = nodelist[0],
|
||||
xlink = el.getAttribute('xlink:href').substr(1),
|
||||
x = el.getAttribute('x') || 0,
|
||||
y = el.getAttribute('y') || 0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue