Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Only bind after shadowRoot creation when using ShadowDOM polyfill.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Apr 18, 2014
1 parent edf3c71 commit fdc43d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/instance/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
this.prepareElement();
// TODO(sorvell): replace when ShadowDOMPolyfill issue is corrected
// https://github.com/Polymer/ShadowDOM/issues/420
//if (!this.ownerDocument.isStagingDocument) {
if (!this.ownerDocument.isStagingDocument || window.ShadowDOMPolyfill) {
this.makeElementReady();
//}
}
},
// system entry point, do not override
prepareElement: function() {
Expand Down

0 comments on commit fdc43d4

Please sign in to comment.