Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure SignatureRequestOriginal 'beforeunload' handler is bound #7414

Merged
merged 1 commit into from
Nov 14, 2019

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Nov 13, 2019

The 'beforeunload' handler was being bound to the module scope instead of the instance scope, because the class was defined using prototypes rather than the ES6 class syntax. The arrow functions were removed, and the handler is now bound explicitly in the constructor.

The 'beforeunload' handler was being bound to the module scope instead
of the instance scope, because the class was defined using prototypes
rather than the ES6 class syntax. The arrow functions were removed, and
the handler is now bound explicitly in the constructor.
@Gudahtt Gudahtt requested a review from tmashuang November 13, 2019 22:54
@metamaskbot
Copy link
Collaborator

Builds ready [52b7914]

@Gudahtt Gudahtt merged commit f5cec3e into develop Nov 14, 2019
@whymarrh whymarrh deleted the ensure-before-unload-is-correctly-bound branch November 14, 2019 18:33
Gudahtt added a commit that referenced this pull request Nov 14, 2019
The 'beforeunload' handler was being bound to the module scope instead
of the instance scope, because the class was defined using prototypes
rather than the ES6 class syntax. The arrow functions were removed, and
the handler is now bound explicitly in the constructor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants