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

Unified Diff: pkg/polymer/lib/src/loader.dart

Issue 30183005: port polymer - 00e2982c78fcd396adaebff3118e94029a2b9fb0 (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/lib/src/instance.dart ('k') | pkg/polymer/test/publish_attributes_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/loader.dart
diff --git a/pkg/polymer/lib/src/loader.dart b/pkg/polymer/lib/src/loader.dart
index 9681a930519b2f48c7a2ff2f917892c9844abd1d..31661fc2f4e0a0f8843ca3c6c50948daa0278588 100644
--- a/pkg/polymer/lib/src/loader.dart
+++ b/pkg/polymer/lib/src/loader.dart
@@ -48,11 +48,14 @@ void initPolymer() {
*/
// TODO(jmesserly): change the Polymer build step to call this directly.
void _initPolymerOptimized() {
- preventFlashOfUnstyledContent();
-
document.register(PolymerDeclaration._TAG, PolymerDeclaration);
_loadLibraries();
+
+ // Run this after user code so they can add to Polymer.veiledElements
+ _preventFlashOfUnstyledContent();
+
+ customElementsReady.then((_) => Polymer._ready.complete());
}
/**
@@ -89,8 +92,6 @@ void _loadLibraries() {
new Completer().completeError(e, s);
}
}
-
- customElementsReady.then((_) => Polymer._ready.complete());
}
/**
« no previous file with comments | « pkg/polymer/lib/src/instance.dart ('k') | pkg/polymer/test/publish_attributes_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698