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

Unified Diff: lib/html/src/DataAttributeMap.dart

Issue 9930008: Fix issue http://code.google.com/p/dart/issues/detail?id=1877 without degrading performance. Impro… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review fixes Created 8 years, 9 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 | « lib/html/frog/html_frog.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/src/DataAttributeMap.dart
diff --git a/lib/html/src/DataAttributeMap.dart b/lib/html/src/DataAttributeMap.dart
index d20e4fc1a071dd8eb8d999067a9f4eb4f52f55d7..7c754e9fa6e64ff149236bec4a5c98ef51a25958 100644
--- a/lib/html/src/DataAttributeMap.dart
+++ b/lib/html/src/DataAttributeMap.dart
@@ -6,7 +6,7 @@
* Provides a Map abstraction on top of data-* attributes, similar to the
* dataSet in the old DOM.
*/
-class _DataAttributeMap implements Map<String, String> {
+class _DataAttributeMap implements AttributeMap {
final Map<String, String> _attributes;
@@ -21,8 +21,8 @@ class _DataAttributeMap implements Map<String, String> {
String operator [](String key) => _attributes[_attr(key)];
- void operator []=(String key, String value) {
- _attributes[_attr(key)] = value;
+ void operator []=(String key, value) {
+ _attributes[_attr(key)] = '$value';
}
String putIfAbsent(String key, String ifAbsent()) {
« no previous file with comments | « lib/html/frog/html_frog.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698