From 33676ab12d6335a8798885e76bf53620e9d1c41c Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Wed, 20 Aug 2014 10:01:39 -0700 Subject: [PATCH] Fixes https://github.com/Polymer/HTMLImports/issues/66 --- src/base.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/base.js b/src/base.js index 929789a..5d11581 100644 --- a/src/base.js +++ b/src/base.js @@ -93,9 +93,10 @@ function watchImportsLoad(callback, doc) { } } +// NOTE: test for native imports loading is based on explicitly watching +// all imports (see below). function isImportLoaded(link) { - return useNative ? (link.import && (link.import.readyState !== 'loading')) || link.__loaded : - link.__importParsed; + return useNative ? link.__loaded : link.__importParsed; } // TODO(sorvell): install a mutation observer to see if HTMLImports have loaded