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

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Aug 20, 2014
1 parent 9a4ba20 commit 33676ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33676ab

Please sign in to comment.