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

Unified Diff: lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 11188029: Make arguments of MutationObserver named. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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:
Download patch
« no previous file with comments | « no previous file | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dart2js/html_dart2js.dart
diff --git a/lib/html/dart2js/html_dart2js.dart b/lib/html/dart2js/html_dart2js.dart
index 0e1615a9aa39f829717e9405afe2e060ae01448b..5f30a82a87821f8d070051065a1ee63652109026 100644
--- a/lib/html/dart2js/html_dart2js.dart
+++ b/lib/html/dart2js/html_dart2js.dart
@@ -20621,14 +20621,14 @@ abstract class MutationObserver {
List<MutationRecord> takeRecords();
void observe(Node target,
- [Map options,
+ {Map options,
bool childList,
bool attributes,
bool characterData,
bool subtree,
bool attributeOldValue,
bool characterDataOldValue,
- List<String> attributeFilter]);
+ List<String> attributeFilter});
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -20648,14 +20648,14 @@ class _MutationObserverImpl implements MutationObserver native "*MutationObserve
List<MutationRecord> takeRecords() native;
void observe(Node target,
- [Map options,
+ {Map options,
bool childList,
bool attributes,
bool characterData,
bool subtree,
bool attributeOldValue,
bool characterDataOldValue,
- List<String> attributeFilter]) {
+ List<String> attributeFilter}) {
// Parse options into map of known type.
var parsedOptions = _createDict();
@@ -39223,7 +39223,7 @@ class _MutationObserverScheduler extends _MeasurementScheduler {
// so we just make a dummy event and listen for that.
_observer = new MutationObserver(this._handleMutation);
_dummy = new DivElement();
- _observer.observe(_dummy, {}, attributes: true);
+ _observer.observe(_dummy, attributes: true);
}
void _schedule() {
« no previous file with comments | « no previous file | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698