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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 24408004: "Reverting 27844" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fd31da0dffe415c5fb8bf0c701a0ced57ca856c3..4e97d224d149db9b75e12b1f3f1e3a3061e3ec1c 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -8966,7 +8966,6 @@ abstract class Element extends Node implements ParentNode, ChildNode native "Ele
/// This is identical to calling `new Element.tag('video')`.
factory Element.video() => new Element.tag('video');
- Map<String, String> _cachedAttributeMap;
/**
* All attributes on this element.
*
@@ -8977,12 +8976,7 @@ abstract class Element extends Node implements ParentNode, ChildNode native "Ele
* (such as 'xlink:href'), additional attributes can be accessed via
* [getNamespacedAttributes].
*/
- Map<String, String> get attributes {
- if (_cachedAttributeMap == null) {
- _cachedAttributeMap = new _ElementAttributeMap(this);
- }
- return _cachedAttributeMap;
- }
+ Map<String, String> get attributes => new _ElementAttributeMap(this);
void set attributes(Map<String, String> value) {
Map<String, String> attributes = this.attributes;
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698