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

Unified Diff: third_party/pkg/angular/lib/core_dom/common.dart

Issue 148453003: Updating Angular version (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/angular/lib/core_dom/common.dart
diff --git a/third_party/pkg/angular/lib/core_dom/common.dart b/third_party/pkg/angular/lib/core_dom/common.dart
index e87d803389c33859a8bf3c0485ca3745cccb9af9..80d943387bad92ccb83cd1ddb8493c8821923618 100644
--- a/third_party/pkg/angular/lib/core_dom/common.dart
+++ b/third_party/pkg/angular/lib/core_dom/common.dart
@@ -1,11 +1,7 @@
part of angular.core.dom;
List<dom.Node> cloneElements(elements) {
- var clones = [];
- for(var i = 0, ii = elements.length; i < ii; i++) {
- clones.add(elements[i].clone(true));
- }
- return clones;
+ return elements.map((el) => el.clone(true)).toList();
}
typedef ApplyMapping(NodeAttrs attrs, Scope scope, Object dst);
« no previous file with comments | « third_party/pkg/angular/lib/core_dom/block_factory.dart ('k') | third_party/pkg/angular/lib/core_dom/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698