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

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

Issue 53743002: introduce ObservableList.listChanges to keep list changes separate from property changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | « pkg/template_binding/lib/src/template_iterator.dart ('k') | no next file » | no next file with comments »
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 /** 5 /**
6 * This library provides access to the Polymer project's 6 * This library provides access to the Polymer project's
7 * [Data Binding](http://www.polymer-project.org/docs/polymer/databinding.html) 7 * [Data Binding](http://www.polymer-project.org/docs/polymer/databinding.html)
8 * Find more information at the 8 * Find more information at the
9 * [Polymer.dart homepage](https://www.dartlang.org/polymer-dart/). 9 * [Polymer.dart homepage](https://www.dartlang.org/polymer-dart/).
10 * 10 *
11 * Extends the capabilities of the HTML Template Element by enabling it to 11 * Extends the capabilities of the HTML Template Element by enabling it to
12 * create, manage, and remove instances of content bound to data defined in 12 * create, manage, and remove instances of content bound to data defined in
13 * Dart. 13 * Dart.
14 * 14 *
15 * Node.bind() is a new method added to all DOM nodes which instructs them to 15 * Node.bind() is a new method added to all DOM nodes which instructs them to
16 * bind the named property to the data provided. These allows applications to 16 * bind the named property to the data provided. These allows applications to
17 * create a data model in Dart or JavaScript that DOM reacts to. 17 * create a data model in Dart or JavaScript that DOM reacts to.
18 */ 18 */
19 library template_binding; 19 library template_binding;
20 20
21 import 'dart:async'; 21 import 'dart:async';
22 import 'dart:collection'; 22 import 'dart:collection';
23 import 'dart:html'; 23 import 'dart:html';
24 import 'dart:svg' show SvgSvgElement; 24 import 'dart:svg' show SvgSvgElement;
25 import 'package:observe/observe.dart'; 25 import 'package:observe/observe.dart';
26 26
27 import 'src/binding_delegate.dart'; 27 import 'src/binding_delegate.dart';
28 import 'src/node_binding.dart'; 28 import 'src/node_binding.dart';
29 import 'src/list_diff.dart' show calculateSplices, ListChangeDelta;
30 29
31 export 'src/binding_delegate.dart'; 30 export 'src/binding_delegate.dart';
32 export 'src/node_binding.dart' show NodeBinding; 31 export 'src/node_binding.dart' show NodeBinding;
33 32
34 part 'src/element.dart'; 33 part 'src/element.dart';
35 part 'src/input_bindings.dart'; 34 part 'src/input_bindings.dart';
36 part 'src/input_element.dart'; 35 part 'src/input_element.dart';
37 part 'src/instance_binding_map.dart'; 36 part 'src/instance_binding_map.dart';
38 part 'src/node.dart'; 37 part 'src/node.dart';
39 part 'src/select_element.dart'; 38 part 'src/select_element.dart';
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 168
170 // The expando for storing our MDV extensions. 169 // The expando for storing our MDV extensions.
171 // 170 //
172 // In general, we need state associated with the nodes. Rather than having a 171 // In general, we need state associated with the nodes. Rather than having a
173 // bunch of individual expandos, we keep one per node. 172 // bunch of individual expandos, we keep one per node.
174 // 173 //
175 // Aside from the potentially helping performance, it also keeps things simpler 174 // Aside from the potentially helping performance, it also keeps things simpler
176 // if we decide to integrate MDV into the DOM later, and means less code needs 175 // if we decide to integrate MDV into the DOM later, and means less code needs
177 // to worry about expandos. 176 // to worry about expandos.
178 final Expando _expando = new Expando('template_binding'); 177 final Expando _expando = new Expando('template_binding');
OLDNEW
« no previous file with comments | « pkg/template_binding/lib/src/template_iterator.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698