| 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/toolkitchen/mdv>. | 8 * More information can be found at: <https://github.com/toolkitchen/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 'dart:math' as math; | 15 import 'dart:math' as math; |
| 16 import 'dart:mirrors'; |
| 16 import 'package:observe/observe.dart'; | 17 import 'package:observe/observe.dart'; |
| 17 | 18 |
| 18 // TODO(jmesserly): get this from somewhere else. See http://dartbug.com/4161. | 19 // TODO(jmesserly): get this from somewhere else. See http://dartbug.com/4161. |
| 19 import 'package:serialization/src/serialization_helpers.dart' show IdentityMap; | 20 import 'package:serialization/src/serialization_helpers.dart' show IdentityMap; |
| 20 | 21 |
| 21 import 'src/list_diff.dart' show calculateSplices, ListChangeDelta; | 22 import 'src/list_diff.dart' show calculateSplices, ListChangeDelta; |
| 22 | 23 |
| 23 part 'src/element.dart'; | 24 part 'src/element.dart'; |
| 24 part 'src/input_bindings.dart'; | 25 part 'src/input_bindings.dart'; |
| 25 part 'src/input_element.dart'; | 26 part 'src/input_element.dart'; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } else if (node is Node) { | 104 } else if (node is Node) { |
| 104 wrapper = new _NodeExtension(node); | 105 wrapper = new _NodeExtension(node); |
| 105 } else { | 106 } else { |
| 106 // TODO(jmesserly): this happens for things like CompoundBinding. | 107 // TODO(jmesserly): this happens for things like CompoundBinding. |
| 107 wrapper = node; | 108 wrapper = node; |
| 108 } | 109 } |
| 109 | 110 |
| 110 _mdvExpando[node] = wrapper; | 111 _mdvExpando[node] = wrapper; |
| 111 return wrapper; | 112 return wrapper; |
| 112 } | 113 } |
| OLD | NEW |