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

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

Issue 27403002: MutationObserver changes for zones (again) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
Index: tools/dom/src/shared_html.dart
diff --git a/tools/dom/src/shared_html.dart b/tools/dom/src/shared_html.dart
index 165e9196c2be9f25b80b2badb07282956d66c550..f4b6e2718b58119fae8ca1b0607dc5963740be96 100644
--- a/tools/dom/src/shared_html.dart
+++ b/tools/dom/src/shared_html.dart
@@ -10,5 +10,10 @@ _wrapZone(callback) {
return Zone.current.bindUnaryCallback(callback, runGuarded: true);
}
+_wrapBinaryZone(callback) {
+ if (Zone.current == Zone.ROOT) return callback;
+ return Zone.current.bindBinaryCallback(callback, runGuarded: true);
+}
+
Element query(String selector) => document.query(selector);
ElementList queryAll(String selector) => document.queryAll(selector);
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/templates/html/impl/impl_MutationObserver.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698