Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: pkg/mdv/lib/mdv.dart

Issue 17770006: [mdv] implement full DOM stability (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: include test Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/mdv/lib/src/bindings.dart » ('j') | pkg/mdv/lib/src/bindings.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'package:observe/observe.dart'; 16 import 'package:observe/observe.dart';
17 17
18 // TODO(jmesserly): get this from somewhere else. See http://dartbug.com/4161.
19 import 'package:serialization/src/serialization_helpers.dart' show IdentityMap;
20
18 part 'src/bindings.dart'; 21 part 'src/bindings.dart';
19 part 'src/element.dart'; 22 part 'src/element.dart';
20 part 'src/input_element.dart'; 23 part 'src/input_element.dart';
21 part 'src/node.dart'; 24 part 'src/node.dart';
22 part 'src/template.dart'; 25 part 'src/template.dart';
23 part 'src/text.dart'; 26 part 'src/text.dart';
24 27
25 /** Initialize the Model-Driven Views polyfill. */ 28 /** Initialize the Model-Driven Views polyfill. */
26 void initialize() { 29 void initialize() {
27 mdvPackage = _mdv; 30 mdvPackage = _mdv;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } else if (node is Node) { 95 } else if (node is Node) {
93 wrapper = new _NodeExtension(node); 96 wrapper = new _NodeExtension(node);
94 } else { 97 } else {
95 // TODO(jmesserly): this happens for things like CompoundBinding. 98 // TODO(jmesserly): this happens for things like CompoundBinding.
96 wrapper = node; 99 wrapper = node;
97 } 100 }
98 101
99 _mdvExpando[node] = wrapper; 102 _mdvExpando[node] = wrapper;
100 return wrapper; 103 return wrapper;
101 } 104 }
OLDNEW
« no previous file with comments | « no previous file | pkg/mdv/lib/src/bindings.dart » ('j') | pkg/mdv/lib/src/bindings.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698