OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library observe.src.bindable; | 5 library observe.src.bindable; |
6 | 6 |
7 /// An object that can be data bound. | 7 /// An object that can be data bound. |
8 // Normally this is used with 'package:template_binding'. | 8 // Normally this is used with 'package:template_binding'. |
9 // TODO(jmesserly): Node.bind polyfill calls this "observable" | 9 // TODO(jmesserly): Node.bind polyfill calls this "observable" |
10 abstract class Bindable { | 10 abstract class Bindable { |
(...skipping 22 matching lines...) Expand all Loading... |
33 // JavaScript? | 33 // JavaScript? |
34 get value; | 34 get value; |
35 | 35 |
36 /// This can be implemented for two-way bindings. By default does nothing. | 36 /// This can be implemented for two-way bindings. By default does nothing. |
37 set value(newValue) {} | 37 set value(newValue) {} |
38 | 38 |
39 /// Deliver changes. Typically this will perform dirty-checking, if any is | 39 /// Deliver changes. Typically this will perform dirty-checking, if any is |
40 /// needed. | 40 /// needed. |
41 void deliver() {} | 41 void deliver() {} |
42 } | 42 } |
OLD | NEW |