From 2260ba0c92b582928402c57d721bfe8b3fa41855 Mon Sep 17 00:00:00 2001 From: Jason Johnston Date: Wed, 18 Dec 2024 17:03:30 -0700 Subject: [PATCH] fix(troika-three-text): Fix error in Safari in BatchedText --- packages/troika-three-text/src/BatchedText.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/troika-three-text/src/BatchedText.js b/packages/troika-three-text/src/BatchedText.js index af57e2ed..6173e794 100644 --- a/packages/troika-three-text/src/BatchedText.js +++ b/packages/troika-three-text/src/BatchedText.js @@ -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; } /**