webcomponents should use attachedCallback instead of createdCallback. (#7102)

This commit is contained in:
Jim
2016-06-22 12:42:50 -07:00
committed by GitHub
parent cd9ad90d05
commit c7ba16fbbf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);