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

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

Issue 103933005: Fix bug 15417 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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/AttributeMap.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_Storage.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Storage.darttemplate b/tools/dom/templates/html/impl/impl_Storage.darttemplate
index d9b0e1ae74f9052bbdd760d4c094f11bc14884f0..82d1f0c50a113fce01cc288a35d180b413baf801 100644
--- a/tools/dom/templates/html/impl/impl_Storage.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Storage.darttemplate
@@ -32,6 +32,10 @@ part of $LIBRARYNAME;
$(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS
implements Map<String, String> $NATIVESPEC {
+ void addAll(Map<String, String> other) {
+ other.forEach((k, v) { this[k] = v; });
+ }
+
// TODO(nweiz): update this when maps support lazy iteration
bool containsValue(String value) => values.any((e) => e == value);
« no previous file with comments | « tools/dom/src/AttributeMap.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698