Index: sdk/lib/html/dart2js/html_dart2js.dart |
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart |
index 8e53e7f629d98f916416c081689046b6d808a342..e5a390047318c118931f6755998fa2826cd2fbf0 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -19771,6 +19771,8 @@ class Storage implements Map<String, String> |
bool get isEmpty => $dom_key(0) == null; |
+ bool get isNotEmpty => !isEmpty; |
+ |
@JSName('length') |
@DomName('Storage.length') |
@DocsEditable |
@@ -24869,6 +24871,11 @@ abstract class _AttributeMap implements Map<String, String> { |
} |
/** |
+ * Returns true if there is at least one {key, value} pair in the map. |
+ */ |
+ bool get isNotEmpty => !isEmpty; |
+ |
+ /** |
* Checks to see if the node should be included in this map. |
*/ |
bool _matches(Node node); |
@@ -25015,6 +25022,8 @@ class _DataAttributeMap implements Map<String, String> { |
// TODO: Use lazy iterator when it is available on Map. |
bool get isEmpty => length == 0; |
+ bool get isNotEmpty => !isEmpty; |
+ |
// Helpers. |
String _attr(String key) => 'data-$key'; |
bool _matches(String key) => key.startsWith('data-'); |