Skip to content

Commit

Permalink
fix(troika-three-text): Fix error in Safari in BatchedText
Browse files Browse the repository at this point in the history
  • Loading branch information
lojjic committed Dec 19, 2024
1 parent 1af247e commit 2260ba0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/troika-three-text/src/BatchedText.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ export class BatchedText extends Text {

/** @override */
hasOutline() {
return this._members.keys().some(m => m.hasOutline())
// Iterator.some() not supported in Safari
for (let member of this._members.keys()) {
if (member.hasOutline()) return true;
}
return false;
}

/**
Expand Down

0 comments on commit 2260ba0

Please sign in to comment.