| OLD | NEW |
| 1 #!mojo mojo:sky_viewer |
| 1 <!-- | 2 <!-- |
| 2 // Copyright 2015 The Chromium Authors. All rights reserved. | 3 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 4 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 5 // found in the LICENSE file. |
| 5 --> | 6 --> |
| 6 <sky> | 7 <sky> |
| 7 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement" /> | 8 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement" /> |
| 8 <import src="/sky/framework/sky-scrollable.sky" /> | 9 <import src="/sky/framework/sky-scrollable.sky" /> |
| 9 <import src="data/cities.sky" as="cities" /> | 10 <import src="data/cities.sky" as="cities" /> |
| 10 | 11 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 module.exports = class extends SkyElement { | 34 module.exports = class extends SkyElement { |
| 34 created() { | 35 created() { |
| 35 this.cities = cities.slice(0, 300); | 36 this.cities = cities.slice(0, 300); |
| 36 } | 37 } |
| 37 }.register(); | 38 }.register(); |
| 38 </script> | 39 </script> |
| 39 </sky-element> | 40 </sky-element> |
| 40 | 41 |
| 41 <example-scrollable /> | 42 <example-scrollable /> |
| 42 </sky> | 43 </sky> |
| OLD | NEW |