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

Side by Side Diff: pkg/polymer/lib/src/instance.dart

Issue 342533003: fix type annotation of $ (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/polymer/pubspec.yaml » ('j') | 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 part of polymer; 5 part of polymer;
6 6
7 /// Use this annotation to publish a field as an attribute. 7 /// Use this annotation to publish a field as an attribute.
8 /// 8 ///
9 /// You can also use [PublishedProperty] to provide additional information, 9 /// You can also use [PublishedProperty] to provide additional information,
10 /// such as automatically syncing the property back to the attribute. 10 /// such as automatically syncing the property back to the attribute.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 /// Map of items in the shadow root(s) by their [Element.id]. 206 /// Map of items in the shadow root(s) by their [Element.id].
207 // TODO(jmesserly): various issues: 207 // TODO(jmesserly): various issues:
208 // * wrap in UnmodifiableMapView? 208 // * wrap in UnmodifiableMapView?
209 // * should we have an object that implements noSuchMethod? 209 // * should we have an object that implements noSuchMethod?
210 // * should the map have a key order (e.g. LinkedHash or SplayTree)? 210 // * should the map have a key order (e.g. LinkedHash or SplayTree)?
211 // * should this be a live list? Polymer doesn't, maybe due to JS limitations? 211 // * should this be a live list? Polymer doesn't, maybe due to JS limitations?
212 // Note: this is observable to support $['someId'] being used in templates. 212 // Note: this is observable to support $['someId'] being used in templates.
213 // The template is stamped before $ is populated, so we need observation if 213 // The template is stamped before $ is populated, so we need observation if
214 // we want it to be usable in bindings. 214 // we want it to be usable in bindings.
215 @reflectable final Map<String, Element> $ = 215 final Map<String, dynamic> $ = new ObservableMap<String, dynamic>();
216 new ObservableMap<String, Element>();
217 216
218 /// Use to override the default syntax for polymer-elements. 217 /// Use to override the default syntax for polymer-elements.
219 /// By default this will be null, which causes [instanceTemplate] to use 218 /// By default this will be null, which causes [instanceTemplate] to use
220 /// the template's bindingDelegate or the [element.syntax], in that order. 219 /// the template's bindingDelegate or the [element.syntax], in that order.
221 PolymerExpressions get syntax => null; 220 PolymerExpressions get syntax => null;
222 221
223 bool get _elementPrepared => _element != null; 222 bool get _elementPrepared => _element != null;
224 223
225 /// Retrieves the custom element name. It should be used instead 224 /// Retrieves the custom element name. It should be used instead
226 /// of localName, see: https://github.com/Polymer/polymer-dev/issues/26 225 /// of localName, see: https://github.com/Polymer/polymer-dev/issues/26
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 1117
1119 final Logger _observeLog = new Logger('polymer.observe'); 1118 final Logger _observeLog = new Logger('polymer.observe');
1120 final Logger _eventsLog = new Logger('polymer.events'); 1119 final Logger _eventsLog = new Logger('polymer.events');
1121 final Logger _unbindLog = new Logger('polymer.unbind'); 1120 final Logger _unbindLog = new Logger('polymer.unbind');
1122 final Logger _bindLog = new Logger('polymer.bind'); 1121 final Logger _bindLog = new Logger('polymer.bind');
1123 1122
1124 final Expando _eventHandledTable = new Expando<Set<Node>>(); 1123 final Expando _eventHandledTable = new Expando<Set<Node>>();
1125 1124
1126 final JsObject _PolymerGestures = js.context['PolymerGestures']; 1125 final JsObject _PolymerGestures = js.context['PolymerGestures'];
1127 1126
OLDNEW
« no previous file with comments | « no previous file | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698