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

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

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
« no previous file with comments | « tools/dom/src/shared_html.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 48d7ae9ff16fa5761c19116f5a0af6333f131d13..413a35d333b8d403d21bae728819c32aeee14c1c 100644
--- a/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
+++ b/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
@@ -84,18 +84,11 @@ $if DART2JS
return JS('MutationObserver',
'new(window.MutationObserver||window.WebKitMutationObserver||'
'window.MozMutationObserver)(#)',
- convertDartClosureToJS((changes, observer) {
- _wrapZone(() {
- callback(changes, observer);
- });
- }, 2));
+ convertDartClosureToJS(_wrapBinaryZone(callback), 2));
}
$else
factory MutationObserver(MutationCallback callback) =>
- new MutationObserver._((changes, observer) {
- _wrapZone(() {
- callback(changes, observer);
- });
+ new MutationObserver._(_wrapBinaryZone(callback));
});
$endif
}
« no previous file with comments | « tools/dom/src/shared_html.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698