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 9b9228f1bb
commit f50372573e
2 changed files with 2 additions and 2 deletions

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);

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);