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

Unified Diff: lib/dom.dart

Issue 2560823004: Strong mode fixes for html package (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/src/encoding_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom.dart
diff --git a/lib/dom.dart b/lib/dom.dart
index 63182f634b84147e348480b1c539c160c12c1a49..bd3e2bdb5dbcf5717860e918dd912c1789834acc 100644
--- a/lib/dom.dart
+++ b/lib/dom.dart
@@ -809,7 +809,6 @@ class NodeList extends ListProxy<Node> {
// TODO(jmesserly): "implements List<Element>" is a workaround for analyzer bug.
class FilteredElementList extends IterableBase<Element> with ListMixin<Element>
implements List<Element> {
- final Node _node;
final List<Node> _childNodes;
/// Creates a collection of the elements that descend from a node.
@@ -819,8 +818,8 @@ class FilteredElementList extends IterableBase<Element> with ListMixin<Element>
/// var filteredElements = new FilteredElementList(query("#container"));
/// // filteredElements is [a, b, c].
FilteredElementList(Node node)
- : _childNodes = node.nodes,
- _node = node;
+ : _childNodes = node.nodes;
+
// We can't memoize this, since it's possible that children will be messed
// with externally to this class.
« no previous file with comments | « no previous file | lib/src/encoding_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698