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

Unified Diff: sky/examples/flights-app/index.sky

Issue 788943003: Make SkyElement more classy. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Don't change indent. Created 6 years 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 | « sky/examples/flights-app/flights-app.sky ('k') | sky/framework/sky-element/sky-element.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/flights-app/index.sky
diff --git a/sky/examples/flights-app/index.sky b/sky/examples/flights-app/index.sky
index 7aa09b339f26ca1b85ebdd190afbea00d68e7f5c..9f262528d3f9c386d7aa8ab53432531c42c3b0ea 100644
--- a/sky/examples/flights-app/index.sky
+++ b/sky/examples/flights-app/index.sky
@@ -1,5 +1,5 @@
<sky>
- <import src="flights-app.sky" />
+ <import src="flights-app.sky" as="FlightsAppElement"/>
<style>
sky {
height: 100%;
@@ -8,8 +8,8 @@
<script>
// TODO(esprehn): Work around a bug where having <flights-app /> in the
// page doesn't render anything until the first input event.
- addEventListener("load", function() {
- document.querySelector("sky").appendChild(document.createElement("flights-app"));
+ window.addEventListener("load", function() {
+ document.querySelector("sky").appendChild(new FlightsAppElement());
});
</script>
</sky>
« no previous file with comments | « sky/examples/flights-app/flights-app.sky ('k') | sky/framework/sky-element/sky-element.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698