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

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

Issue 867963006: Add the <t> element and ignore whitespace outside it. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Do it for a whole subtree. 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/html/parser/HTMLElementStack.cpp ('k') | sky/framework/dom-serializer.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> 10 <script>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 display: inline; 82 display: inline;
83 } 83 }
84 84
85 #name { 85 #name {
86 font-weight: bold 86 font-weight: bold
87 } 87 }
88 88
89 #population { 89 #population {
90 color: #AAA; 90 color: #AAA;
91 } 91 }
92
93 </style> 92 </style>
94 <div> 93 <div>
95 <span id="name">{{ name }}</span>, 94 <span id="name">{{ name }}</span>
95 <t>, </t>
96 <span id="population">population {{ population }}</span> 96 <span id="population">population {{ population }}</span>
97 </div> 97 </div>
98 </template> 98 </template>
99 <script> 99 <script>
100 module.exports.CityItemElement = class extends SkyElement { 100 module.exports.CityItemElement = class extends SkyElement {
101 created() { 101 created() {
102 this.name = ""; 102 this.name = "";
103 this.population = ""; 103 this.population = "";
104 } 104 }
105 set datum(datum) { 105 set datum(datum) {
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 619
620 scrollBy(amount) { 620 scrollBy(amount) {
621 this.scrollerElement.scrollTop += amount; 621 this.scrollerElement.scrollTop += amount;
622 this.handleScroll({ target: this.scrollerElement }); 622 this.handleScroll({ target: this.scrollerElement });
623 } 623 }
624 }.register(); 624 }.register();
625 625
626 })(this); 626 })(this);
627 </script> 627 </script>
628 </sky-element> 628 </sky-element>
OLDNEW
« no previous file with comments | « sky/engine/core/html/parser/HTMLElementStack.cpp ('k') | sky/framework/dom-serializer.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698