Skip to content

Commit

Permalink
update fix issue facebook#7056, remove unused web component callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
jalexanderfox committed Jun 22, 2016
1 parent 93109d1 commit ec60c9c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions examples/webcomponents/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ <h4>Example Details</h4>

// Define WebComponent
var proto = Object.create(HTMLElement.prototype, {
createdCallback: {
value: function() {
}
}
,attachedCallback: {
attachedCallback: {
value: function() {
var mountPoint = document.createElement('span');
this.createShadowRoot().appendChild(mountPoint);
Expand All @@ -51,14 +47,6 @@ <h4>Example Details</h4>
ReactDOM.render(<a href={url}>{name}</a>, mountPoint);
}
}
,detachedCallback: {
value: function() {
}
}
,attributeChangedCallback: {
value: function() {
}
}
});
document.registerElement('x-search', {prototype: proto});

Expand Down

0 comments on commit ec60c9c

Please sign in to comment.