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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 14246008: Allow Object when doing lookups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix type error. Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev' hide Symbol; 6 import 'dart:_collection-dev' hide Symbol;
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 7606 matching lines...) Expand 10 before | Expand all | Expand 10 after
7617 7617
7618 class _ChildrenElementList extends ListBase<Element> { 7618 class _ChildrenElementList extends ListBase<Element> {
7619 // Raw Element. 7619 // Raw Element.
7620 final Element _element; 7620 final Element _element;
7621 final HtmlCollection _childElements; 7621 final HtmlCollection _childElements;
7622 7622
7623 _ChildrenElementList._wrap(Element element) 7623 _ChildrenElementList._wrap(Element element)
7624 : _childElements = element.$dom_children, 7624 : _childElements = element.$dom_children,
7625 _element = element; 7625 _element = element;
7626 7626
7627 bool contains(Element element) => _childElements.contains(element); 7627 bool contains(Object element) => _childElements.contains(element);
7628 7628
7629 7629
7630 bool get isEmpty { 7630 bool get isEmpty {
7631 return _element.$dom_firstElementChild == null; 7631 return _element.$dom_firstElementChild == null;
7632 } 7632 }
7633 7633
7634 int get length { 7634 int get length {
7635 return _childElements.length; 7635 return _childElements.length;
7636 } 7636 }
7637 7637
(...skipping 22246 matching lines...) Expand 10 before | Expand all | Expand 10 after
29884 _position = nextPosition; 29884 _position = nextPosition;
29885 return true; 29885 return true;
29886 } 29886 }
29887 _current = null; 29887 _current = null;
29888 _position = _array.length; 29888 _position = _array.length;
29889 return false; 29889 return false;
29890 } 29890 }
29891 29891
29892 T get current => _current; 29892 T get current => _current;
29893 } 29893 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698