| 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 /** |
| 6 * A binding delegate used with Polymer elements that |
| 7 * allows for complex binding expressions, including |
| 8 * property access, function invocation, |
| 9 * list/map indexing, and two-way filtering. |
| 10 * |
| 11 * When you install polymer.dart, |
| 12 * polymer_expressions is automatically installed as well. |
| 13 * |
| 14 * Polymer expressions are part of the Polymer.dart project. |
| 15 * Refer to the |
| 16 * [Polymer.dart](http://www.dartlang.org/polymer-dart/) |
| 17 * homepage for example code, project status, and |
| 18 * information about how to get started using Polymer.dart in your apps. |
| 19 * |
| 20 * ## Other resources |
| 21 * |
| 22 * The |
| 23 * [Polymer expressions](http://pub.dartlang.org/packages/polymer_expressions) |
| 24 * pub repository contains detailed documentation about using polymer |
| 25 * expressions. |
| 26 */ |
| 27 |
| 5 library polymer_expressions; | 28 library polymer_expressions; |
| 6 | 29 |
| 7 import 'dart:async'; | 30 import 'dart:async'; |
| 8 import 'dart:html'; | 31 import 'dart:html'; |
| 9 | 32 |
| 10 import 'package:observe/observe.dart'; | 33 import 'package:observe/observe.dart'; |
| 11 | 34 |
| 12 import 'eval.dart'; | 35 import 'eval.dart'; |
| 13 import 'expression.dart'; | 36 import 'expression.dart'; |
| 14 import 'parser.dart'; | 37 import 'parser.dart'; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 123 |
| 101 getValueWorkaround(key) { | 124 getValueWorkaround(key) { |
| 102 if (key == _VALUE) return value; | 125 if (key == _VALUE) return value; |
| 103 } | 126 } |
| 104 | 127 |
| 105 setValueWorkaround(key, v) { | 128 setValueWorkaround(key, v) { |
| 106 if (key == _VALUE) value = v; | 129 if (key == _VALUE) value = v; |
| 107 } | 130 } |
| 108 | 131 |
| 109 } | 132 } |
| OLD | NEW |