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

refactor(launcher): use this directly instead assign to self variable in base launcher #3157

Merged
merged 1 commit into from
Oct 3, 2018
Merged

Conversation

lusarz
Copy link
Contributor

@lusarz lusarz commented Oct 3, 2018

This pull request is the first step that should help us to transform BaseLauncher to be ES6 class

@@ -41,7 +40,7 @@ function BaseLauncher (id, emitter) {

this.error = null
this.state = BEING_CAPTURED
this.emit('start', url + '?id=' + this.id + (helper.isDefined(self.displayName) ? '&displayName=' + encodeURIComponent(self.displayName) : ''))
this.emit('start', url + '?id=' + this.id + (helper.isDefined(this.displayName) ? '&displayName=' + encodeURIComponent(this.displayName) : ''))
}

this.kill = function () {
Copy link
Collaborator

@devoto13 devoto13 Oct 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should also change this.start and this.kill to be arrow functions to be on the safe side. Not 100% sure, because of inheritance.

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.

None yet

3 participants