This repository was archived by the owner on Mar 13, 2018. It is now read-only.
File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 10
10
11
11
var IMPORT_LINK_TYPE = 'import' ;
12
12
var flags = scope . flags ;
13
- var isIe = / T r i d e n t / . test ( navigator . userAgent ) ;
13
+ var isIE = scope . isIE ;
14
14
// TODO(sorvell): SD polyfill intrusion
15
15
var mainDoc = window . ShadowDOMPolyfill ?
16
16
window . ShadowDOMPolyfill . wrapIfNeeded ( document ) : document ;
@@ -173,7 +173,7 @@ var importParser = {
173
173
174
174
// NOTE: IE does not fire "load" event for styles that have already loaded
175
175
// This is in violation of the spec, so we try our hardest to work around it
176
- if ( isIe && elt . localName === 'style' ) {
176
+ if ( isIE && elt . localName === 'style' ) {
177
177
var fakeLoad = false ;
178
178
// If there's not @import in the textContent, assume it has loaded
179
179
if ( elt . textContent . indexOf ( '@import' ) == - 1 ) {
@@ -330,6 +330,5 @@ var path = {
330
330
// exports
331
331
scope . parser = importParser ;
332
332
scope . path = path ;
333
- scope . isIE = isIe ;
334
333
335
334
} ) ( HTMLImports ) ;
Original file line number Diff line number Diff line change 10
10
var hasNative = ( 'import' in document . createElement ( 'link' ) ) ;
11
11
var useNative = hasNative ;
12
12
13
+ isIE = / T r i d e n t / . test ( navigator . userAgent ) ;
14
+
13
15
// TODO(sorvell): SD polyfill intrusion
14
16
var mainDoc = window . ShadowDOMPolyfill ?
15
17
ShadowDOMPolyfill . wrapIfNeeded ( document ) : document ;
@@ -41,7 +43,7 @@ function whenImportsReady(callback, doc) {
41
43
}
42
44
43
45
// call the callback when the document is in a ready state (has dom)
44
- var requiredReadyState = HTMLImports . isIE ? 'complete' : 'interactive' ;
46
+ var requiredReadyState = isIE ? 'complete' : 'interactive' ;
45
47
var READY_EVENT = 'readystatechange' ;
46
48
function isDocumentReady ( doc ) {
47
49
return ( doc . readyState === 'complete' ||
@@ -152,6 +154,7 @@ whenImportsReady(function() {
152
154
scope . useNative = useNative ;
153
155
scope . isImportLoaded = isImportLoaded ;
154
156
scope . whenReady = whenImportsReady ;
157
+ scope . isIE = isIE ;
155
158
156
159
// deprecated
157
160
scope . whenImportsReady = whenImportsReady ;
You can’t perform that action at this time.
0 commit comments