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

Commit

Permalink
Helps address Polymer/polymer#399
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jan 21, 2014
1 parent c22127c commit 7266eba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/CustomElements.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ var flags = scope.flags;
// native document.registerElement?

var hasNative = Boolean(document.registerElement);
var useNative = !flags.register && hasNative;
// TODO(sorvell): See https://github.com/Polymer/polymer/issues/399
// we'll address this by defaulting to CE polyfill in the presence of the SD
// polyfill. This will avoid spamming excess attached/detached callbacks.
// If there is a compelling need to run CE native with SD polyfill,
// we'll need to fix this issue.
var useNative = !flags.register && hasNative && !window.ShadowDOMPolyfill;

if (useNative) {

Expand Down

0 comments on commit 7266eba

Please sign in to comment.