| Index: src/site/docs/tutorials/polymer-intro/examples/stopwatch/out/web/tute_stopwatch.dart
|
| diff --git a/src/site/docs/tutorials/polymer-intro/examples/stopwatch/out/web/tute_stopwatch.dart b/src/site/docs/tutorials/polymer-intro/examples/stopwatch/out/web/tute_stopwatch.dart
|
| index 4ec2f03dac7b36dd0a1b471fbcfe1ea04e39ac06..5e5f0617e97d75dd549b22d41b09abb5f04e8151 100644
|
| --- a/src/site/docs/tutorials/polymer-intro/examples/stopwatch/out/web/tute_stopwatch.dart
|
| +++ b/src/site/docs/tutorials/polymer-intro/examples/stopwatch/out/web/tute_stopwatch.dart
|
| @@ -3,13 +3,8 @@ import 'dart:async';
|
| import 'package:polymer/polymer.dart';
|
|
|
| @CustomTag('tute-stopwatch')
|
| -class TuteStopwatch extends PolymerElement with ChangeNotifierMixin {
|
| - String __$counter = '00:00';
|
| - String get counter => __$counter;
|
| - set counter(String value) {
|
| - __$counter = notifyPropertyChange(const Symbol('counter'), __$counter, value);
|
| - }
|
| -
|
| +class TuteStopwatch extends PolymerElement {
|
| + @observable String get counter => __$counter; String __$counter='00:00'; set counter(String value) { __$counter = notifyPropertyChange(#counter, __$counter, value); }
|
|
|
| Stopwatch mywatch = new Stopwatch();
|
| Timer mytimer;
|
| @@ -20,9 +15,9 @@ class TuteStopwatch extends PolymerElement with ChangeNotifierMixin {
|
|
|
| void inserted() {
|
| super.inserted();
|
| - startButton = getShadowRoot('tute-stopwatch').query('#startButton');
|
| - stopButton = getShadowRoot('tute-stopwatch').query('#stopButton');
|
| - resetButton = getShadowRoot('tute-stopwatch').query('#resetButton');
|
| + startButton = $['startButton'];
|
| + stopButton = $['stopButton'];
|
| + resetButton = $['resetButton'];
|
|
|
| stopButton.disabled = true;
|
| resetButton.disabled = true;
|
|
|