From 061c2f9117482c81aad62b84dd4f12bbf8fe03dc Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Tue, 28 Jan 2014 17:14:49 -0800 Subject: [PATCH] make tests pass under native imports. --- src/HTMLImports.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HTMLImports.js b/src/HTMLImports.js index bd8d6a9..d6eff0c 100644 --- a/src/HTMLImports.js +++ b/src/HTMLImports.js @@ -10,6 +10,9 @@ var hasNative = ('import' in document.createElement('link')); var useNative = !scope.flags.imports && hasNative; var IMPORT_LINK_TYPE = 'import'; +// TODO(sorvell): SD polyfill intrusion +var mainDoc = window.ShadowDOMPolyfill ? + ShadowDOMPolyfill.wrapIfNeeded(document) : document; if (!useNative) { // imports @@ -36,9 +39,6 @@ if (!useNative) { var importLoader; var STYLE_LINK_TYPE = 'stylesheet'; - // TODO(sorvell): SD polyfill intrusion - var mainDoc = window.ShadowDOMPolyfill ? - window.ShadowDOMPolyfill.wrapIfNeeded(document) : document; var importer = { documents: {},