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

fix webcomponent example issue #7056 #7057

Merged
merged 2 commits into from
Jun 22, 2016
Merged

Conversation

jalexanderfox
Copy link
Contributor

fixes issue #7056

@ghost
Copy link

ghost commented Jun 16, 2016

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@ghost
Copy link

ghost commented Jun 16, 2016

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@ghost ghost added the CLA Signed label Jun 16, 2016
value: function() {
}
}
,attributeChangedCallback: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Afaik, we don't need to define createdCallback, detachedCallback, nor attributeChangedCallback. It just makes the example more complicated and detracts from what we're demonstrating. Can you remove these additional functions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are correct, they are not required for the purposes of the demonstration, though it is quite nice to have all four callbacks available should someone want to know which ones exist or want to expand upon the example. Also, I didn't see it as complicating the example since they are empty functions but to your point, less code to read is less. I will remove them.

@jimfb
Copy link
Contributor

jimfb commented Jun 22, 2016

Looks good, thanks!

@jimfb jimfb merged commit cd9ad90 into facebook:master Jun 22, 2016
@zpao zpao added this to the 15-next milestone Jul 1, 2016
zpao pushed a commit that referenced this pull request Jul 8, 2016
* fix webcomponent example issue #7056

* update fix issue #7056, remove unused web component  callbacks

(cherry picked from commit cd9ad90)
@zpao zpao modified the milestones: 15-next, 15.2.1 Jul 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants