Index: runtime/observatory/lib/src/elements/nav/refresh.dart |
diff --git a/runtime/observatory/lib/src/elements/nav/refresh.dart b/runtime/observatory/lib/src/elements/nav/refresh.dart |
index 5e5079887622c1abe8a79e8e76d3360414fdeba1..795c7bd18e78ef26b02eba026f4c2244c93487d1 100644 |
--- a/runtime/observatory/lib/src/elements/nav/refresh.dart |
+++ b/runtime/observatory/lib/src/elements/nav/refresh.dart |
@@ -27,23 +27,8 @@ class NavRefreshElement extends HtmlElement implements Renderable { |
String _label; |
bool get disabled => _disabled; |
String get label => _label; |
- set disabled(bool value) { |
- if (_disabled != value) { |
- _disabled = value; |
- _r.dirty(); |
- } else { |
- _r.scheduleNotification(); |
- } |
- } |
- set label(String value) { |
- if (_label != value) { |
- _label = value; |
- _r.dirty(); |
- } else { |
- _r.scheduleNotification(); |
- } |
- } |
- |
+ set disabled(bool value) => _disabled = _r.checkAndReact(_disabled, value); |
+ set label(String value) => _label = _r.checkAndReact(_label, value); |
factory NavRefreshElement({String label: 'Refresh', bool disabled: false, |
RenderingQueue queue}) { |