Index: samples/third_party/todomvc/web/editable_label.dart |
diff --git a/samples/third_party/todomvc/web/editable_label.dart b/samples/third_party/todomvc/web/editable_label.dart |
index e1b6115b2a83e95882ac98e9c8bc999a3218a466..eafb7d2f0e2689b8981b77c354075637e393e178 100644 |
--- a/samples/third_party/todomvc/web/editable_label.dart |
+++ b/samples/third_party/todomvc/web/editable_label.dart |
@@ -2,7 +2,7 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-library editable_label; |
+library todomvc.web.editable_label; |
import 'dart:html'; |
import 'package:polymer/polymer.dart'; |
@@ -11,9 +11,10 @@ import 'package:polymer/polymer.dart'; |
* Label whose [value] can be edited by double clicking. When editing, it |
* displays a form and input element, otherwise it displays the label. |
*/ |
-class EditableLabel extends PolymerElement with ObservableMixin { |
+class EditableLabel extends PolymerElement { |
@observable bool editing = false; |
- @observable String value = ''; |
+ @published String value = ''; |
+ |
bool get applyAuthorStyles => true; |
InputElement get _editBox => getShadowRoot("editable-label").query('#edit'); |
@@ -46,5 +47,5 @@ class EditableLabel extends PolymerElement with ObservableMixin { |
} |
void main() { |
- registerPolymerElement('editable-label', () => new EditableLabel()); |
+ Polymer.register('editable-label', EditableLabel); |
} |