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

Commit 403b6c1

Browse files
committed
minor Observer changes
1 parent f3be8f1 commit 403b6c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/HTMLImports.js

+1
Original file line numberDiff line numberDiff line change
@@ -246,5 +246,6 @@ scope.hasNative = hasNative;
246246
scope.useNative = useNative;
247247
scope.whenImportsReady = whenImportsReady;
248248
scope.IMPORT_LINK_TYPE = IMPORT_LINK_TYPE;
249+
scope.isImportLoaded = isImportLoaded;
249250

250251
})(window.HTMLImports);

src/Observer.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ function addedNodes(nodes) {
3636
}
3737
}
3838

39-
// TODO(sorvell): need x-platform matches
4039
function shouldLoadNode(node) {
41-
return node.matches(importer.preloadSelectors);
40+
return matches.call(node, importer.preloadSelectors);
4241
}
4342

4443
var observer = new MutationObserver(handler);
@@ -54,8 +53,8 @@ function canParse(node) {
5453
return nextImportToParse(doc) === node;
5554
}
5655

57-
function nextImportToParse(doc) {
58-
56+
function nextImportToParse() {
57+
//doc.querySelectorAll(importSelector)
5958
}
6059

6160

0 commit comments

Comments
 (0)