Skip to content

Commit

Permalink
Merge pull request #2557 from Adyen/fix/fixed_missing_this_bindings
Browse files Browse the repository at this point in the history
Fix missing bindings for 'this' that had started causing errors in iOS
  • Loading branch information
sponglord authored Feb 16, 2024
2 parents 78bfdd5 + 8bf3e80 commit 98c20ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/five-bobcats-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@adyen/adyen-web": patch
---

Fix missing bindings for 'this' that had started causing errors in iOS
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ class CSF extends AbstractCSF {

this.postMessageToAllIframes = partial(postMessageToAllIframes, thisObj);

this.handleIOSTouchEvents = handleIOSTouchEvents.handleTouchend;
this.handleIOSTouchEvents = handleIOSTouchEvents.handleTouchend.bind(this);
this.touchendListener = handleIOSTouchEvents.touchendListener.bind(this);
this.destroyTouchendListener = handleIOSTouchEvents.destroyTouchendListener;
this.destroyTouchendListener = handleIOSTouchEvents.destroyTouchendListener.bind(this);
this.touchstartListener = handleIOSTouchEvents.touchstartListener.bind(this);
this.destroyTouchstartListener = handleIOSTouchEvents.destroyTouchstartListener;
this.destroyTouchstartListener = handleIOSTouchEvents.destroyTouchstartListener.bind(this);

this.setFocusOnFrame = partial(setFocusOnFrame, thisObj);
this.handleFocus = partial(handleFocus, thisObj, this.handleIOSTouchEvents);
Expand Down

0 comments on commit 98c20ae

Please sign in to comment.