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

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

Issue 1233083004: Fixed Dictionary and Event hookup w/o --gen-interop (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Merged Created 5 years, 5 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/scripts/systemnative.py ('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 3469eef1c0c86d14650a1dc3830710b1e4f4e0ba..d45e98a0e1c7b0e07fee7b6c73b57d9afb02febd 100644
--- a/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
+++ b/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
@@ -20,7 +20,7 @@ $endif
}
$if DARTIUM
@DocsEditable()
-$if JSINTEROP
+ $if JSINTEROP
static MutationObserver _create(callback) => wrap_jso(_blink.BlinkMutationObserver.instance.constructorCallback_1_((List<MutationRecord> mutations, MutationObserver observer) {
var wrapped_mutations = [];
for (var mutation in mutations) {
@@ -30,17 +30,9 @@ $if JSINTEROP
// Wrap the MutationObserver too.
callback(wrapped_mutations, wrap_jso(observer));
}));
-$else
- static MutationObserver _create(callback) => _blink.BlinkMutationObserver.instance.constructorCallback_1_((List<MutationRecord> mutations, MutationObserver observer) {
- var wrapped_mutations = [];
- for (var mutation in mutations) {
- // Wrap the Javascript object for each MutationRecord.
- wrapped_mutations.add(wrap_jso(mutation));
- }
- // Wrap the MutationObserver too.
- callback(wrapped_mutations, wrap_jso(observer));
- });
-$endif
+ $else
+ static MutationObserver _create(callback) => _blink.BlinkMutationObserver.instance.constructorCallback_1_(callback);
+ $endif
$endif
/**
« no previous file with comments | « tools/dom/scripts/systemnative.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698