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

Update window creation #2028

Merged
merged 3 commits into from
Aug 2, 2017
Merged

Update window creation #2028

merged 3 commits into from
Aug 2, 2017

Conversation

ppot
Copy link
Contributor

@ppot ppot commented Jul 27, 2017

Change

  • reduce code
  • optimize code readability
  • create window extending BrowserWindow

@ppot
Copy link
Contributor Author

ppot commented Jul 30, 2017

@chabou @albinekb reviews ;)

app/ui/window.js Outdated

module.exports = class Window extends BrowserWindow {
constructor(opts, cfg, fn) {
opts = Object.assign({
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be rewritten immutable (using const only)

app/ui/window.js Outdated
});

rpc.on('new', opts => {
opts = Object.assign({
Copy link
Contributor

@albinekb albinekb Aug 2, 2017

Choose a reason for hiding this comment

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

same here (immutable, const)

Copy link
Contributor

@albinekb albinekb left a comment

Choose a reason for hiding this comment

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

A step in the right direction 😄 We need to break up all the rpc handling to make the bindings less messy, but that's ok for another PR, as this lays the groundwork for further cleanup!

@ppot ppot merged commit 4fd115b into vercel:master Aug 2, 2017
@ppot ppot deleted the structure branch August 2, 2017 19:20
chabou added a commit to chabou/hyper that referenced this pull request Sep 5, 2017
Regression introduced by vercel#2028
chabou added a commit to chabou/hyper that referenced this pull request Sep 5, 2017
Regression introduced by vercel#2028
@chabou chabou mentioned this pull request Sep 5, 2017
chabou added a commit that referenced this pull request Sep 5, 2017
Regression introduced by #2028
spncrgr pushed a commit to spncrgr/hyper that referenced this pull request Sep 23, 2017
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.

2 participants