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

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

Issue 27307004: Converting Polymer's WebComponentsLoaded to an onReady future (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
Index: pkg/polymer/lib/src/loader.dart
diff --git a/pkg/polymer/lib/src/loader.dart b/pkg/polymer/lib/src/loader.dart
index 844b6264f645a52dc9003181a727d25b0d6876c5..28cbd1e711f7afa217eb9c8c30c16fc6d9514cd8 100644
--- a/pkg/polymer/lib/src/loader.dart
+++ b/pkg/polymer/lib/src/loader.dart
@@ -42,10 +42,11 @@ void initPolymer(List<String> libraries, [String srcUrl]) {
_loadLibrary(lib, srcUrl);
}
- // TODO(jmesserly): this should be in the custom_element polyfill, not here.
- // notify the system that we are bootstrapped
- document.body.dispatchEvent(
- new CustomEvent('WebComponentsReady', canBubble: true));
+ Polymer._ready.complete();
+
+ // TODO(sigmund): move to boot.dart once it's ready.
+ document.body.style.transition = 'opacity 0.3s';
+ document.body.style.opacity = '1';
});
}

Powered by Google App Engine
This is Rietveld 408576698