| Index: tools/dom/src/AttributeMap.dart
|
| diff --git a/tools/dom/src/AttributeMap.dart b/tools/dom/src/AttributeMap.dart
|
| index 76a90648c1802ebf90e67999f5aaa4c3eff2b072..39ca3668413503d1712a61f46ec75d168064af2f 100644
|
| --- a/tools/dom/src/AttributeMap.dart
|
| +++ b/tools/dom/src/AttributeMap.dart
|
| @@ -159,27 +159,27 @@ class _NamespacedAttributeMap extends _AttributeMap {
|
| */
|
| class _DataAttributeMap implements Map<String, String> {
|
|
|
| - final Map<String, String> $dom_attributes;
|
| + final Map<String, String> _attributes;
|
|
|
| - _DataAttributeMap(this.$dom_attributes);
|
| + _DataAttributeMap(this._attributes);
|
|
|
| // interface Map
|
|
|
| // TODO: Use lazy iterator when it is available on Map.
|
| bool containsValue(String value) => values.any((v) => v == value);
|
|
|
| - bool containsKey(String key) => $dom_attributes.containsKey(_attr(key));
|
| + bool containsKey(String key) => _attributes.containsKey(_attr(key));
|
|
|
| - String operator [](String key) => $dom_attributes[_attr(key)];
|
| + String operator [](String key) => _attributes[_attr(key)];
|
|
|
| void operator []=(String key, String value) {
|
| - $dom_attributes[_attr(key)] = value;
|
| + _attributes[_attr(key)] = value;
|
| }
|
|
|
| String putIfAbsent(String key, String ifAbsent()) =>
|
| - $dom_attributes.putIfAbsent(_attr(key), ifAbsent);
|
| + _attributes.putIfAbsent(_attr(key), ifAbsent);
|
|
|
| - String remove(String key) => $dom_attributes.remove(_attr(key));
|
| + String remove(String key) => _attributes.remove(_attr(key));
|
|
|
| void clear() {
|
| // Needs to operate on a snapshot since we are mutating the collection.
|
| @@ -189,7 +189,7 @@ class _DataAttributeMap implements Map<String, String> {
|
| }
|
|
|
| void forEach(void f(String key, String value)) {
|
| - $dom_attributes.forEach((String key, String value) {
|
| + _attributes.forEach((String key, String value) {
|
| if (_matches(key)) {
|
| f(_strip(key), value);
|
| }
|
| @@ -198,7 +198,7 @@ class _DataAttributeMap implements Map<String, String> {
|
|
|
| Iterable<String> get keys {
|
| final keys = new List<String>();
|
| - $dom_attributes.forEach((String key, String value) {
|
| + _attributes.forEach((String key, String value) {
|
| if (_matches(key)) {
|
| keys.add(_strip(key));
|
| }
|
| @@ -208,7 +208,7 @@ class _DataAttributeMap implements Map<String, String> {
|
|
|
| Iterable<String> get values {
|
| final values = new List<String>();
|
| - $dom_attributes.forEach((String key, String value) {
|
| + _attributes.forEach((String key, String value) {
|
| if (_matches(key)) {
|
| values.add(value);
|
| }
|
|
|