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

Commit

Permalink
remove unintended global.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Sep 29, 2014
1 parent bc3d3d6 commit 78d3cb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
var hasNative = ('import' in document.createElement('link'));
var useNative = hasNative;

isIE = /Trident/.test(navigator.userAgent);
var isIE = /Trident/.test(navigator.userAgent);

// TODO(sorvell): SD polyfill intrusion
var hasShadowDOMPolyfill = Boolean(window.ShadowDOMPolyfill);
var wrap = function(node) {
return hasShadowDOMPolyfill ? ShadowDOMPolyfill.wrapIfNeeded(node) : node;
};

var mainDoc = wrap(document);

// NOTE: We cannot polyfill document.currentScript because it's not possible
Expand Down

0 comments on commit 78d3cb7

Please sign in to comment.