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

Unified Diff: client/html/release/htmlimpl.dart

Issue 8907051: Fix _ChildrenNodeList#forEach. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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:
Download patch
Index: client/html/release/htmlimpl.dart
diff --git a/client/html/release/htmlimpl.dart b/client/html/release/htmlimpl.dart
index 8581a977f86fb2293f13054b5837045c8e854a30..13dc71d298c18f4d6942442281459ac2babd1a70 100644
--- a/client/html/release/htmlimpl.dart
+++ b/client/html/release/htmlimpl.dart
@@ -23891,8 +23891,8 @@ class _ChildrenNodeList implements NodeList {
}
void forEach(void f(Node element)) {
- for (var node in _childNodes) {
- f(LevelDom.wrapNode(node));
+ for (int i = 0, len = _childNodes.length; i < len; i++) {
+ f(LevelDom.wrapNode(_childNodes[i]));
}
}
« no previous file with comments | « no previous file | client/html/src/NodeWrappingImplementation.dart » ('j') | client/html/src/NodeWrappingImplementation.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698