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

Commit

Permalink
revert CustomElements changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Katochimoto committed Aug 2, 2014
1 parent a63e327 commit 3ca60a8
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/CustomElements.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,6 @@ var hasNative = Boolean(document.registerElement);
// other key related web components features.
var useNative = !flags.register && hasNative && !window.ShadowDOMPolyfill && (!window.HTMLImports || HTMLImports.useNative);

if (useNative) {
// FF doesn't store methods and properties after cloning
document.registerElement('check-cloning-element', {
prototype: Object.create(HTMLElement.prototype, {
test: { get: function() { return 1; } }
})
});

if (!document.createElement('check-cloning-element').cloneNode(true).test) {
useNative = false;
}
}

if (useNative) {

// stub
Expand Down

0 comments on commit 3ca60a8

Please sign in to comment.