| 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 /** | 5 /** |
| 6 * A binding delegate used with Polymer elements that | 6 * A binding delegate used with Polymer elements that |
| 7 * allows for complex binding expressions, including | 7 * allows for complex binding expressions, including |
| 8 * property access, function invocation, | 8 * property access, function invocation, |
| 9 * list/map indexing, and two-way filtering. | 9 * list/map indexing, and two-way filtering. |
| 10 * | 10 * |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 vars[v.identifier] = i; | 120 vars[v.identifier] = i; |
| 121 Scope childScope = new Scope(parent: _scope, variables: vars); | 121 Scope childScope = new Scope(parent: _scope, variables: vars); |
| 122 return childScope; | 122 return childScope; |
| 123 }).toList(growable: false); | 123 }).toList(growable: false); |
| 124 } else { | 124 } else { |
| 125 _value = (_converter == null) ? v : _converter(v); | 125 _value = (_converter == null) ? v : _converter(v); |
| 126 } | 126 } |
| 127 notifyPropertyChange(#value, oldValue, _value); | 127 notifyPropertyChange(#value, oldValue, _value); |
| 128 } | 128 } |
| 129 | 129 |
| 130 get value => _value; | 130 @reflectable get value => _value; |
| 131 | 131 |
| 132 set value(v) { | 132 @reflectable set value(v) { |
| 133 try { | 133 try { |
| 134 assign(_expr, v, _scope); | 134 assign(_expr, v, _scope); |
| 135 } on EvalException catch (e) { | 135 } on EvalException catch (e) { |
| 136 // silently swallow binding errors | 136 // silently swallow binding errors |
| 137 } | 137 } |
| 138 } | 138 } |
| 139 } | 139 } |
| OLD | NEW |