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

Unified Diff: lib/observe/map.dart

Issue 22280002: use custom_element pkg (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 7 years, 4 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 | « no previous file | lib/web_ui.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/observe/map.dart
diff --git a/lib/observe/map.dart b/lib/observe/map.dart
index ef4f45967c8a40c4e795d67b1ddd49a37814c407..e86ac496a053e801af45ed80ed9a1c55e12cbbdb 100644
--- a/lib/observe/map.dart
+++ b/lib/observe/map.dart
@@ -43,9 +43,9 @@ class ObservableMap<K, V> extends Observable implements Map<K, V> {
/**
* Creates an observable map that contains all key value pairs of [other].
*/
- factory ObservableMap.from(Map<K, V> other, {MapFactory<K, V> createMap}) {
- var result = new ObservableMap<K, V>(createMap: createMap);
- other.forEach((K key, V value) { result[key] = value; });
+ factory ObservableMap.from(Map/*<K, V>*/ other, {MapFactory/*<K, V>*/ createMap}) {
Siggi Cherem (dart-lang) 2013/08/05 22:02:06 80 col
Jennifer Messerly 2013/08/06 16:35:33 Done.
+ var result = new ObservableMap/*<K, V>*/(createMap: createMap);
+ other.forEach((/*K*/ key, /*V*/value) { result[key] = value; });
return result;
}
« no previous file with comments | « no previous file | lib/web_ui.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698