| 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.
|
|
|