Skip to content

Commit

Permalink
webcomponents should use attachedCallback instead of createdCallback. (
Browse files Browse the repository at this point in the history
  • Loading branch information
jimfb authored Jun 22, 2016
1 parent cd9ad90 commit c7ba16f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/ref-09-webcomponents.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class HelloMessage extends React.Component{

```javascript
var proto = Object.create(HTMLElement.prototype, {
createdCallback: {
attachedCallback: {
value: function() {
var mountPoint = document.createElement('span');
this.createShadowRoot().appendChild(mountPoint);
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/ref-09-webcomponents.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class HelloMessage extends React.Component{

```javascript
var proto = Object.create(HTMLElement.prototype, {
createdCallback: {
attachedCallback: {
value: function() {
var mountPoint = document.createElement('span');
this.createShadowRoot().appendChild(mountPoint);
Expand Down

0 comments on commit c7ba16f

Please sign in to comment.