| 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 // TODO(jmesserly): more commentary here. | 5 // TODO(jmesserly): more commentary here. |
| 6 /** | 6 /** |
| 7 * This library provides access to Model-Driven-Views APIs on HTML elements. | 7 * Template and node binding for HTML elements. |
| 8 * More information can be found at: <https://github.com/Polymer/mdv>. | 8 * |
| 9 * This library provides access to the Polymer project's |
| 10 * [Template Binding](http://www.polymer-project.org/platform/template.html) and |
| 11 * [Node.bind()](http://www.polymer-project.org/platform/node_bind.html) APIs. |
| 12 * Find more information at the |
| 13 * [Polymer.dart homepage](https://www.dartlang.org/polymer-dart/). |
| 9 */ | 14 */ |
| 10 library mdv; | 15 library mdv; |
| 11 | 16 |
| 12 import 'dart:async'; | 17 import 'dart:async'; |
| 13 import 'dart:collection'; | 18 import 'dart:collection'; |
| 14 import 'dart:html'; | 19 import 'dart:html'; |
| 15 import 'package:observe/observe.dart'; | 20 import 'package:observe/observe.dart'; |
| 16 | 21 |
| 17 import 'src/list_diff.dart' show calculateSplices, ListChangeDelta; | 22 import 'src/list_diff.dart' show calculateSplices, ListChangeDelta; |
| 18 | 23 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 } else if (node is Node) { | 95 } else if (node is Node) { |
| 91 wrapper = new _NodeExtension(node); | 96 wrapper = new _NodeExtension(node); |
| 92 } else { | 97 } else { |
| 93 // TODO(jmesserly): this happens for things like CompoundBinding. | 98 // TODO(jmesserly): this happens for things like CompoundBinding. |
| 94 wrapper = node; | 99 wrapper = node; |
| 95 } | 100 } |
| 96 | 101 |
| 97 _mdvExpando[node] = wrapper; | 102 _mdvExpando[node] = wrapper; |
| 98 return wrapper; | 103 return wrapper; |
| 99 } | 104 } |
| OLD | NEW |