From a2039d9b7ac2d355d16788caa0a26572fa6ddb28 Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Thu, 12 Dec 2013 09:52:30 -0800 Subject: [PATCH] dispatch WebComponentsReady event on document instead of body. --- src/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot.js b/src/boot.js index a26f2a7..d9cf42a 100644 --- a/src/boot.js +++ b/src/boot.js @@ -25,7 +25,7 @@ function bootstrap() { CustomElements.elapsed = CustomElements.readyTime - HTMLImports.readyTime; } // notify the system that we are bootstrapped - document.body.dispatchEvent( + document.dispatchEvent( new CustomEvent('WebComponentsReady', {bubbles: true}) ); });