| 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 * This library provides access to Model-Driven-Views APIs on HTML elements. |
| 8 * More information can be found at: <https://github.com/Polymer/mdv>. | 8 * More information can be found at: <https://github.com/Polymer/mdv>. |
| 9 */ | 9 */ |
| 10 library mdv; | 10 library mdv; |
| 11 | 11 |
| 12 import 'dart:async'; | 12 import 'dart:async'; |
| 13 import 'dart:collection'; | 13 import 'dart:collection'; |
| 14 import 'dart:html'; | 14 import 'dart:html'; |
| 15 import 'package:observe/observe.dart'; | 15 import 'package:observe/observe.dart'; |
| 16 | 16 |
| 17 // TODO(jmesserly): get this from somewhere else. See http://dartbug.com/4161. | |
| 18 import 'package:serialization/src/serialization_helpers.dart' show IdentityMap; | |
| 19 | |
| 20 import 'src/list_diff.dart' show calculateSplices, ListChangeDelta; | 17 import 'src/list_diff.dart' show calculateSplices, ListChangeDelta; |
| 21 | 18 |
| 22 part 'src/element.dart'; | 19 part 'src/element.dart'; |
| 23 part 'src/input_bindings.dart'; | 20 part 'src/input_bindings.dart'; |
| 24 part 'src/input_element.dart'; | 21 part 'src/input_element.dart'; |
| 25 part 'src/node.dart'; | 22 part 'src/node.dart'; |
| 26 part 'src/select_element.dart'; | 23 part 'src/select_element.dart'; |
| 27 part 'src/template.dart'; | 24 part 'src/template.dart'; |
| 28 part 'src/template_iterator.dart'; | 25 part 'src/template_iterator.dart'; |
| 29 part 'src/text.dart'; | 26 part 'src/text.dart'; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 } else if (node is Node) { | 90 } else if (node is Node) { |
| 94 wrapper = new _NodeExtension(node); | 91 wrapper = new _NodeExtension(node); |
| 95 } else { | 92 } else { |
| 96 // TODO(jmesserly): this happens for things like CompoundBinding. | 93 // TODO(jmesserly): this happens for things like CompoundBinding. |
| 97 wrapper = node; | 94 wrapper = node; |
| 98 } | 95 } |
| 99 | 96 |
| 100 _mdvExpando[node] = wrapper; | 97 _mdvExpando[node] = wrapper; |
| 101 return wrapper; | 98 return wrapper; |
| 102 } | 99 } |
| OLD | NEW |