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

Unified Diff: samples/calculator/calculator.dart

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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
« no previous file with comments | « runtime/lib/growable_array.dart ('k') | 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 2585f9a331b6c5966582b2042837908fb9dbba55..eaff6ca71a512560bcd6fbdb2ee43ed6175bb8ce 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.elements.last);
if (wasOpened) {
removePadEvents();
addPadEvents();
@@ -153,7 +153,7 @@ void renderPad(Element parentElement) {
// Remove previous pad UI
if (parentElement.elements.length > 1) {
- parentElement.elements.last().remove();
+ parentElement.elements.last.remove();
}
// Add new pad UI.
« no previous file with comments | « runtime/lib/growable_array.dart ('k') | samples/calculator/tape.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698