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

This commit is contained in:
Jim authored and GitHub committed 2016-06-22 12:42:50 -07:00
1 parent cd9ad90d05
commit c7ba16fbbf
2 files changed
+2 -2

No files matched your search

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