| Index: samples/calculator/tape.dart
|
| diff --git a/samples/calculator/tape.dart b/samples/calculator/tape.dart
|
| index 5621d20687aff62c49b8bf6c9401085a58bb0455..bb7c6fc501ef902e992c6e6b169ffecc9d65aad1 100644
|
| --- a/samples/calculator/tape.dart
|
| +++ b/samples/calculator/tape.dart
|
| @@ -22,7 +22,7 @@ class Tape {
|
| if (number != "." && number != "-" && number != "-.") {
|
| try {
|
| numberAsValue = Math.parseDouble(number.length == 0 ? "0" : number);
|
| - } catch (final BadNumberFormatException e) {
|
| + } catch (final FormatException e) {
|
| displayError(e.toString());
|
| return;
|
| }
|
| @@ -213,10 +213,10 @@ class Tape {
|
|
|
| void clearTotal() {
|
| final element = new Element.tag('div');
|
| -
|
| +
|
| element.innerHTML = tapeUI.clearCalculation();
|
| tapeUI.tape.elements.add(element.elements[0]);
|
| -
|
| +
|
| scrollToTapeBottom();
|
| }
|
|
|
|
|