OLD | NEW |
1 library html; | 1 library html; |
2 | 2 |
3 import 'dart:collection'; | 3 import 'dart:collection'; |
4 import 'dart:html_common'; | 4 import 'dart:html_common'; |
5 import 'dart:indexed_db'; | 5 import 'dart:indexed_db'; |
6 import 'dart:isolate'; | 6 import 'dart:isolate'; |
7 import 'dart:json'; | 7 import 'dart:json'; |
8 import 'dart:svg' as svg; | 8 import 'dart:svg' as svg; |
9 import 'dart:web_audio' as web_audio; | 9 import 'dart:web_audio' as web_audio; |
10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
(...skipping 7156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7167 Map<String, String> attributes = this.attributes; | 7167 Map<String, String> attributes = this.attributes; |
7168 attributes.clear(); | 7168 attributes.clear(); |
7169 for (String key in value.keys) { | 7169 for (String key in value.keys) { |
7170 attributes[key] = value[key]; | 7170 attributes[key] = value[key]; |
7171 } | 7171 } |
7172 } | 7172 } |
7173 | 7173 |
7174 /** | 7174 /** |
7175 * Deprecated, use innerHtml instead. | 7175 * Deprecated, use innerHtml instead. |
7176 */ | 7176 */ |
7177 @deprecated | |
7178 String get innerHTML => this.innerHtml; | 7177 String get innerHTML => this.innerHtml; |
7179 @deprecated | |
7180 void set innerHTML(String value) { | 7178 void set innerHTML(String value) { |
7181 this.innerHtml = value; | 7179 this.innerHtml = value; |
7182 } | 7180 } |
7183 | 7181 |
7184 @deprecated | |
7185 void set elements(Collection<Element> value) { | 7182 void set elements(Collection<Element> value) { |
7186 this.children = value; | 7183 this.children = value; |
7187 } | 7184 } |
7188 | 7185 |
7189 /** | 7186 /** |
7190 * Deprecated, use [children] instead. | 7187 * Deprecated, use [children] instead. |
7191 */ | 7188 */ |
7192 @deprecated | |
7193 List<Element> get elements => this.children; | 7189 List<Element> get elements => this.children; |
7194 | 7190 |
7195 /** | 7191 /** |
7196 * @domName childElementCount, firstElementChild, lastElementChild, | 7192 * @domName childElementCount, firstElementChild, lastElementChild, |
7197 * children, Node.nodes.add | 7193 * children, Node.nodes.add |
7198 */ | 7194 */ |
7199 List<Element> get children => new _ChildrenElementList._wrap(this); | 7195 List<Element> get children => new _ChildrenElementList._wrap(this); |
7200 | 7196 |
7201 void set children(List<Element> value) { | 7197 void set children(List<Element> value) { |
7202 // Copy list first since we don't want liveness during iteration. | 7198 // Copy list first since we don't want liveness during iteration. |
(...skipping 17235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
24438 T next() { | 24434 T next() { |
24439 if (!hasNext) { | 24435 if (!hasNext) { |
24440 throw new StateError("No more elements"); | 24436 throw new StateError("No more elements"); |
24441 } | 24437 } |
24442 return _array[_pos++]; | 24438 return _array[_pos++]; |
24443 } | 24439 } |
24444 | 24440 |
24445 final List<T> _array; | 24441 final List<T> _array; |
24446 int _pos; | 24442 int _pos; |
24447 } | 24443 } |
OLD | NEW |