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

Unified Diff: tools/dom/templates/html/impl/impl_MutationObserver.darttemplate

Issue 27240004: Making all callbacks use zones (take 2) (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/templates/html/impl/impl_MutationObserver.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate b/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
index 6fcaf31cbbb95e06ac5260d2815bf5d8b2381cba..bc036b44e8385692b351282d4ca97c9baedb22a3 100644
--- a/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
+++ b/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
@@ -84,7 +84,10 @@ $if DART2JS
return JS('MutationObserver',
'new(window.MutationObserver||window.WebKitMutationObserver||'
'window.MozMutationObserver)(#)',
- convertDartClosureToJS(callback, 2));
+ convertDartClosureToJS(_wrapZone(callback), 2));
}
+$else
+ factory MutationObserver(MutationCallback callback) =>
+ new MutationObserver._(_wrapZone(callback));
$endif
}

Powered by Google App Engine
This is Rietveld 408576698