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

Commit

Permalink
make tests pass under native imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jan 29, 2014
1 parent 8703f0f commit 061c2f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/HTMLImports.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: {},
Expand Down

0 comments on commit 061c2f9

Please sign in to comment.