From 64a92f273462f04a84abbe2f054294f2b62dbcd6 Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Thu, 21 Nov 2013 10:31:02 -0800 Subject: [PATCH] importNode patch updated to remove SD polyfill portion. It now works with importNode. --- src/patches-mdv.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/patches-mdv.js b/src/patches-mdv.js index 310a637..7f73c64 100644 --- a/src/patches-mdv.js +++ b/src/patches-mdv.js @@ -39,16 +39,8 @@ window.addEventListener('WebComponentsReady', function() { if (window.CustomElements && !CustomElements.useNative) { var originalImportNode = Document.prototype.importNode; Document.prototype.importNode = function(node, deep) { - // TODO(sorvell): remove these conditionals when polyfill supports importNode - // https://github.com/Polymer/ShadowDOM/issues/317 - if (window.ShadowDOMPolyfill) { - node = ShadowDOMPolyfill.unwrap(node); - } var imported = originalImportNode.call(this, node, deep); CustomElements.upgradeAll(imported); - if (window.ShadowDOMPolyfill) { - imported = ShadowDOMPolyfill.wrap(imported); - } return imported; } }