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

Side by Side Diff: sky/examples/city-list/city-list.sky

Issue 872043003: module.exports should default to an empty object. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/app/Module.idl ('k') | sky/tests/modules/import-without-export.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 <!-- 1 <!--
2 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Copyright 2014 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 --> 5 -->
6 <import src="../../framework/sky-element/sky-element.sky" as="SkyElement" /> 6 <import src="../../framework/sky-element/sky-element.sky" as="SkyElement" />
7 <import src="city-data-service.sky" as="CityDataService" /> 7 <import src="city-data-service.sky" as="CityDataService" />
8 <import src="city-sequence.sky" as="CitySequence" /> 8 <import src="city-sequence.sky" as="CitySequence" />
9 9
10 <script>
11 // TODO(esprehn): exports should start as the empty object.
12 module.exports = {};
13 </script>
14
15 <sky-element name="state-header"> 10 <sky-element name="state-header">
16 <template> 11 <template>
17 <style> 12 <style>
18 div { 13 div {
19 font-size: 16px; 14 font-size: 16px;
20 color: #FFF; 15 color: #FFF;
21 background-color: #333; 16 background-color: #333;
22 padding: 4px 4px 4px 12px; 17 padding: 4px 4px 4px 12px;
23 display: paragraph; 18 display: paragraph;
24 } 19 }
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 614
620 scrollBy(amount) { 615 scrollBy(amount) {
621 this.scrollerElement.scrollTop += amount; 616 this.scrollerElement.scrollTop += amount;
622 this.handleScroll({ target: this.scrollerElement }); 617 this.handleScroll({ target: this.scrollerElement });
623 } 618 }
624 }.register(); 619 }.register();
625 620
626 })(this); 621 })(this);
627 </script> 622 </script>
628 </sky-element> 623 </sky-element>
OLDNEW
« no previous file with comments | « sky/engine/core/app/Module.idl ('k') | sky/tests/modules/import-without-export.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698