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

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

Issue 34453003: Rename mdv -> template_binding, remove experiemntal apis from dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/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 /** 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 libraries must 46 * automatically invokes [Observable.dirtyCheck], and the list of libraries must
47 * be supplied instead of being dynamically searched for at runtime. 47 * be supplied instead of being dynamically searched for at runtime.
48 */ 48 */
49 // TODO(jmesserly): change the Polymer build step to call this directly. 49 // TODO(jmesserly): change the Polymer build step to call this directly.
50 void _initPolymerOptimized() { 50 void _initPolymerOptimized() {
51 preventFlashOfUnstyledContent(); 51 preventFlashOfUnstyledContent();
52 52
53 // TODO(jmesserly): mdv should use initMdv instead of mdv.initialize.
54 mdv.initialize();
55 document.register(PolymerDeclaration._TAG, PolymerDeclaration); 53 document.register(PolymerDeclaration._TAG, PolymerDeclaration);
56 54
57 _loadLibraries(); 55 _loadLibraries();
58 } 56 }
59 57
60 /** 58 /**
61 * Configures [initPolymer] making it optimized for deployment to the internet. 59 * Configures [initPolymer] making it optimized for deployment to the internet.
62 * With this setup the list of libraries to initialize is supplied instead of 60 * With this setup the list of libraries to initialize is supplied instead of
63 * being dynamically searched for at runtime. Additionally, after this method is 61 * being dynamically searched for at runtime. Additionally, after this method is
64 * called, [initPolymer] omits the [Zone] that automatically invokes 62 * called, [initPolymer] omits the [Zone] that automatically invokes
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 print("warning: methods marked with @initMethod should take no " 241 print("warning: methods marked with @initMethod should take no "
244 "arguments, ${method.simpleName} expects some."); 242 "arguments, ${method.simpleName} expects some.");
245 return; 243 return;
246 } 244 }
247 obj.invoke(method.simpleName, const []); 245 obj.invoke(method.simpleName, const []);
248 } 246 }
249 247
250 class _InitMethodAnnotation { 248 class _InitMethodAnnotation {
251 const _InitMethodAnnotation(); 249 const _InitMethodAnnotation();
252 } 250 }
OLDNEW
« no previous file with comments | « pkg/polymer/lib/src/instance.dart ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698