- Notifications
You must be signed in to change notification settings - Fork 147
Fix #152: Document option object pattern #153
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
Conversation
doc/calling-javascript.md Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would make this a title of lower order (###
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Scala" with capital first letter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, consider making this section more about JS facades. Maybe even make the title: "Option objects for native JavaScript libraries"
Thanks for the contribution. |
Please reference the issue in your commit message: "Fix #152: Document option object pattern". This will automatically establish the link between issue and PR. |
(this might also be a better commit title than " Update calling-javascript.md". git is able to tell me which files were altered. We don't need to duplicate that information in the commit message). |
That's all. |
thanks for all comments. |
doc/calling-javascript.md Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add an empty line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, Scala upper case, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And "A" instead of "An" ("An" only if followed by a vovel).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also maybe say "should" instead of "can". And replace "easy access" (we don't really access, do we) by "type safe creation". (this is why one should do this, rather than scattering js.Dynamic.literal
all over the code).
That's all. Once you are done, please squash the commits into a single commit and give it the PR's title. |
@gzm0 I don't have that much experience using Github, I was using the online editor and have no idea how can I squash the commits into a single commit! |
@omidb You'll have to do that using a local git client. After having cloned your fork, cd into its directory, then:
and then you can rebase like this:
Now in the editor that spawns, replace
|
adding `Literal object construction using an scala object interface` section to address http://stackoverflow.com/questions/26638171/how-do-i-create-options-objects-in-scala-js Fix #152: Document option object pattern: option patterns has been documented in this fix.
@sjrd thanks for detailed instructions, I did it |
@omidb care to update this for the new site? |
@ochrons sure, should I do anything? (I barely remember what happen :D ) |
As things have changed and moved around quite a lot, it might be easiest to just make a new PR with the same content on the current document :) |
From a PR for last website scala-js#153 adding Literal object construction using an scala object interface section to address http://stackoverflow.com/questions/26638171/how-do-i-create-options-objects-in-scala-js Fix scala-js#152: Document option object pattern
From a PR for last website scala-js#153 adding Literal object construction using an scala object interface section to address http://stackoverflow.com/questions/26638171/how-do-i-create-options-objects-in-scala-js Fix scala-js#152: Document option object pattern
From a PR for last website scala-js#153 adding Literal object construction using an scala object interface section to address http://stackoverflow.com/questions/26638171/how-do-i-create-options-objects-in-scala-js Fix scala-js#152: Document option object pattern Update types.md comments applied remove triple blank lines
adding
Literal object construction using an scala object interface
section to address http://stackoverflow.com/questions/26638171/how-do-i-create-options-objects-in-scala-jsFix #152: Document option object pattern