File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ export class TextView extends View<TextViewEventMap> {
146146 /** The total number of lines after text wrapping. */
147147 lineCount = 0 ;
148148
149+ private _onSyncCompleteBound = this . onSyncComplete . bind ( this ) ;
149150 private _initializeTextCalled = false ;
150151 private _text = 'TextView' ;
151152 set text ( text ) {
@@ -372,7 +373,7 @@ export class TextView extends View<TextViewEventMap> {
372373 this . textObj . addEventListener (
373374 // @ts -expect-error Missing type in Troika
374375 'synccomplete' ,
375- this . onSyncComplete . bind ( this )
376+ this . _onSyncCompleteBound
376377 ) ;
377378
378379 if ( this . imageOverlay ) {
@@ -413,7 +414,7 @@ export class TextView extends View<TextViewEventMap> {
413414 this . textObj . removeEventListener (
414415 // @ts -expect-error Missing type in Troika
415416 'synccomplete' ,
416- this . onSyncComplete . bind ( this )
417+ this . _onSyncCompleteBound
417418 ) ;
418419 }
419420 super . dispose ( ) ;
You can’t perform that action at this time.
0 commit comments