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

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

Issue 26442003: Fixing MutationObserver constructor from zones change (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
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bc036b44e8385692b351282d4ca97c9baedb22a3..48d7ae9ff16fa5761c19116f5a0af6333f131d13 100644
--- a/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
+++ b/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
@@ -84,10 +84,18 @@ $if DART2JS
return JS('MutationObserver',
'new(window.MutationObserver||window.WebKitMutationObserver||'
'window.MozMutationObserver)(#)',
- convertDartClosureToJS(_wrapZone(callback), 2));
+ convertDartClosureToJS((changes, observer) {
+ _wrapZone(() {
+ callback(changes, observer);
+ });
+ }, 2));
}
$else
factory MutationObserver(MutationCallback callback) =>
- new MutationObserver._(_wrapZone(callback));
+ new MutationObserver._((changes, observer) {
+ _wrapZone(() {
+ callback(changes, observer);
+ });
+ });
$endif
}
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698