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

Unified Diff: samples/calculator/calculator.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 | « no previous file | samples/calculator/tape.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/calculator/calculator.dart
diff --git a/samples/calculator/calculator.dart b/samples/calculator/calculator.dart
index e9133b12d0b9e2d17c12d8bb1a8bdd0e5f83722c..9f8a95d563a4d3e255b5c81506784c7a9a124857 100644
--- a/samples/calculator/calculator.dart
+++ b/samples/calculator/calculator.dart
@@ -79,7 +79,7 @@ void setupEvents() {
// If settings dialog is open close it.
mySettings.close(e);
- renderPad(document.body.elements.last);
+ renderPad(document.body.children.last);
if (wasOpened) {
removePadEvents();
addPadEvents();
@@ -152,12 +152,12 @@ void renderPad(Element parentElement) {
// Update calculator pad.
// Remove previous pad UI
- if (parentElement.elements.length > 1) {
- parentElement.elements.last.remove();
+ if (parentElement.children.length > 1) {
+ parentElement.children.last.remove();
}
// Add new pad UI.
- parentElement.elements.add(padUI.root);
+ parentElement.children.add(padUI.root);
}
}
@@ -367,7 +367,7 @@ void main() {
// Create our Tape UI.
tapeUI = new TapeUI();
- element.elements.add(tapeUI.root);
+ element.children.add(tapeUI.root);
// Create our tape controller.
tape = new Tape();
@@ -375,7 +375,7 @@ void main() {
renderPad(element);
// Render the UI.
- document.body.elements.add(element);
+ document.body.children.add(element);
currentRegister = "";
total = 0.0;
« no previous file with comments | « no previous file | samples/calculator/tape.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698