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

Unified Diff: samples/chat/dart_client/chat.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/calculator/tape.dart ('k') | samples/logo/logo.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/chat/dart_client/chat.dart
diff --git a/samples/chat/dart_client/chat.dart b/samples/chat/dart_client/chat.dart
index 326f5ad018b12f3908e14896fb4e102c97b03be3..d5be28b5f8cea8e5440e4f3a0a4d442900604206 100644
--- a/samples/chat/dart_client/chat.dart
+++ b/samples/chat/dart_client/chat.dart
@@ -179,7 +179,7 @@ class Chat {
showElement(_joinSection);
hideElement(_chatSection);
_nextMessage = 0;
- _messages.elements.clear();
+ _messages.children.clear();
showStatus("Welcome to dart chat sample. "
"This chat service is build using Dart for both the server and the client. "
"Enter your handle to join.");
@@ -227,8 +227,8 @@ class Chat {
}
p.text = text.toString();
_messages.insertAdjacentElement('afterBegin', p);
- if (_messages.elements.length > 20) {
- _messages.elements.removeLast();
+ if (_messages.children.length > 20) {
+ _messages.children.removeLast();
}
}
@@ -294,7 +294,7 @@ class Chat {
Document doc = window.document;
ParagraphElement p = new Element.tag('p');
p.text = message;
- doc.body.elements.add(p);
+ doc.body.children.add(p);
}
ButtonElement _joinButton;
« no previous file with comments | « samples/calculator/tape.dart ('k') | samples/logo/logo.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698