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

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

Issue 132403010: big update to observe, template_binding, polymer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | « pkg/polymer/lib/src/instance.dart ('k') | pkg/polymer/test/attr_mustache_test.dart » ('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 /** Annotation used to automatically register polymer elements. */ 7 /** Annotation used to automatically register polymer elements. */
8 class CustomTag { 8 class CustomTag {
9 final String tagName; 9 final String tagName;
10 const CustomTag(this.tagName); 10 const CustomTag(this.tagName);
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 /** 43 /**
44 * Same as [initPolymer], but runs the version that is optimized for deployment 44 * Same as [initPolymer], but runs the version that is optimized for deployment
45 * to the internet. The biggest difference is it omits the [Zone] that 45 * to the internet. The biggest difference is it omits the [Zone] that
46 * automatically invokes [Observable.dirtyCheck], and the list of initializers 46 * automatically invokes [Observable.dirtyCheck], and the list of initializers
47 * must be supplied instead of being dynamically searched for at runtime using 47 * must be supplied instead of being dynamically searched for at runtime using
48 * mirrors. 48 * mirrors.
49 */ 49 */
50 Zone initPolymerOptimized() { 50 Zone initPolymerOptimized() {
51 // TODO(jmesserly): there is some code in src/declaration/polymer-element.js,
52 // git version 37eea00e13b9f86ab21c85a955585e8e4237e3d2, right before
53 // it registers polymer-element, which uses Platform.deliverDeclarations to
54 // coordinate with HTML Imports. I don't think we need it so skipping.
51 document.register(PolymerDeclaration._TAG, PolymerDeclaration); 55 document.register(PolymerDeclaration._TAG, PolymerDeclaration);
52 56
53 for (var initializer in _initializers) { 57 for (var initializer in _initializers) {
54 initializer(); 58 initializer();
55 } 59 }
56 60
57 // Run this after user code so they can add to Polymer.veiledElements 61 // Run this after user code so they can add to Polymer.veiledElements
58 _preventFlashOfUnstyledContent(); 62 _preventFlashOfUnstyledContent();
59 63
60 customElementsReady.then((_) => Polymer._ready.complete()); 64 customElementsReady.then((_) => Polymer._ready.complete());
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 print("warning: methods marked with @initMethod should take no " 235 print("warning: methods marked with @initMethod should take no "
232 "arguments, ${method.simpleName} expects some."); 236 "arguments, ${method.simpleName} expects some.");
233 return; 237 return;
234 } 238 }
235 initializers.add(() => obj.invoke(method.simpleName, const [])); 239 initializers.add(() => obj.invoke(method.simpleName, const []));
236 } 240 }
237 241
238 class _InitMethodAnnotation { 242 class _InitMethodAnnotation {
239 const _InitMethodAnnotation(); 243 const _InitMethodAnnotation();
240 } 244 }
OLDNEW
« no previous file with comments | « pkg/polymer/lib/src/instance.dart ('k') | pkg/polymer/test/attr_mustache_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698