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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <sky> 1 <sky>
2 <import src="flights-app.sky" /> 2 <import src="flights-app.sky" as="FlightsAppElement"/>
3 <style> 3 <style>
4 sky { 4 sky {
5 height: 100%; 5 height: 100%;
6 } 6 }
7 </style> 7 </style>
8 <script> 8 <script>
9 // TODO(esprehn): Work around a bug where having <flights-app /> in the 9 // TODO(esprehn): Work around a bug where having <flights-app /> in the
10 // page doesn't render anything until the first input event. 10 // page doesn't render anything until the first input event.
11 addEventListener("load", function() { 11 window.addEventListener("load", function() {
12 document.querySelector("sky").appendChild(document.createElement("flights- app")); 12 document.querySelector("sky").appendChild(new FlightsAppElement());
13 }); 13 });
14 </script> 14 </script>
15 </sky> 15 </sky>
OLDNEW
« 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