mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Use childNodes instead of children
This commit is contained in:
parent
aac34afbc8
commit
9065cad302
1 changed files with 2 additions and 2 deletions
|
@ -317,8 +317,8 @@ new function() {
|
||||||
// Does not support x/y attribute or tspan positioning beyond left justified.
|
// Does not support x/y attribute or tspan positioning beyond left justified.
|
||||||
var lines = [];
|
var lines = [];
|
||||||
var spacing = 1.2;
|
var spacing = 1.2;
|
||||||
for (var i = 0; i < node.children.length; i++) {
|
for (var i = 0; i < node.childNodes.length; i++) {
|
||||||
var child = node.children[i];
|
var child = node.childNodes[i];
|
||||||
lines.push(child.textContent);
|
lines.push(child.textContent);
|
||||||
var dyString = child.getAttribute('dy');
|
var dyString = child.getAttribute('dy');
|
||||||
if (dyString) {
|
if (dyString) {
|
||||||
|
|
Loading…
Reference in a new issue