Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: tools/dom/src/ModelTreeObserver.dart

Issue 14018022: Fix model-tree-observer in html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/ModelTreeObserver.dart
diff --git a/tools/dom/src/ModelTreeObserver.dart b/tools/dom/src/ModelTreeObserver.dart
index 30408ad9d0e451ed42758901c14b89b46d6bea72..38cf9b3f72711fc867c7c76ad27b2fad55a0d67e 100644
--- a/tools/dom/src/ModelTreeObserver.dart
+++ b/tools/dom/src/ModelTreeObserver.dart
@@ -79,9 +79,11 @@ class _ModelTreeObserver {
// Catch and report them a global exceptions.
try {
if (node._hasLocalModel != true && node._model != model &&
- node._modelChangedStream != null) {
+ node._modelChangedStreams != null &&
+ !node._modelChangedStreams.isEmpty) {
node._model = model;
- node._modelChangedStream.add(node);
+ node._modelChangedStreams.toList()
+ .forEach((controller) => controller.add(node));
}
} catch (e, s) {
new Future.immediateError(e, s);
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698