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

Unified Diff: samples/swipe/swipe.dart

Issue 11413071: Deprecating Element.elements for Element.children. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback. Created 8 years, 1 month 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 | « samples/newissues/newissues.dart ('k') | samples/tests/samples/lib/layout/grid_layout_demo.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swipe/swipe.dart
diff --git a/samples/swipe/swipe.dart b/samples/swipe/swipe.dart
index c51c9b62049d5c803ac0c998383b16cc6f6d4351..a91fabdb00d0066aebb1ec313c0fcce311555a8c 100644
--- a/samples/swipe/swipe.dart
+++ b/samples/swipe/swipe.dart
@@ -71,7 +71,7 @@ void main() {
void initialize3D() {
target.classes.add("transformable");
- num childCount = target.elements.length;
+ num childCount = target.children.length;
window.requestLayoutFrame(() {
num width = query("#target").clientWidth;
@@ -83,7 +83,7 @@ void initialize3D() {
query('#container2').style.width = "${radius}px";
for (int i = 0; i < childCount; i++) {
- var panel = target.elements[i];
+ var panel = target.children[i];
panel.classes.add("transformable");
@@ -96,7 +96,7 @@ void initialize3D() {
}
void spinFigure(Element figure, int direction) {
- num childCount = target.elements.length;
+ num childCount = target.children.length;
anglePos += (360.0 / childCount) * direction;
« no previous file with comments | « samples/newissues/newissues.dart ('k') | samples/tests/samples/lib/layout/grid_layout_demo.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698