Skip to content

Commit f2c1b48

Browse files
Merge pull request #199 from liming/master
fix #198: connected/disconnected events cannot dispatch to nested component
2 parents 5a42ccf + 41a4531 commit f2c1b48

File tree

11 files changed

+801
-603
lines changed

11 files changed

+801
-603
lines changed

cjs/objects/Updates.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -474,12 +474,12 @@ function observe() {
474474
const dispatchTarget = (node, event) => {
475475
if (components.has(node)) {
476476
node.dispatchEvent(event);
477-
} else {
478-
const children = node.children;
479-
const length = children.length;
480-
for (let i = 0; i < length; i++) {
481-
dispatchTarget(children[i], event);
482-
}
477+
}
478+
479+
const children = node.children;
480+
const length = children.length;
481+
for (let i = 0; i < length; i++) {
482+
dispatchTarget(children[i], event);
483483
}
484484
}
485485

coverage/coverage.json

+1-1
Large diffs are not rendered by default.

coverage/lcov-report/hyperHTML/index.c.js.html

+222-222
Large diffs are not rendered by default.

coverage/lcov-report/hyperHTML/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ <h1>
8181
</div><!-- /wrapper -->
8282
<div class='footer quiet pad2 space-top1 center small'>
8383
Code coverage
84-
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Feb 07 2018 19:56:02 GMT+0100 (CET)
84+
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Feb 22 2018 22:26:06 GMT+1100 (AEDT)
8585
</div>
8686
</div>
8787
<script src="../prettify.js"></script>

coverage/lcov-report/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ <h1>
8181
</div><!-- /wrapper -->
8282
<div class='footer quiet pad2 space-top1 center small'>
8383
Code coverage
84-
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Feb 07 2018 19:56:02 GMT+0100 (CET)
84+
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Feb 22 2018 22:26:06 GMT+1100 (AEDT)
8585
</div>
8686
</div>
8787
<script src="prettify.js"></script>

0 commit comments

Comments
 (0)