| OLD | NEW |
| 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="/sky/framework/sky-element/sky-element.sky" as="SkyElement" /> | 6 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement" /> |
| 7 | 7 |
| 8 <sky-element name="test-element" attributes="size:number, checked:boolean,name:s
tring"> | 8 <sky-element |
| 9 name="test-element" |
| 10 attributes="size:number, checked:boolean,name:string" |
| 11 on-host-event="handleEvent"> |
| 9 <template> | 12 <template> |
| 10 <div id="inside" on-test-event="handleEvent" lang="{{ value }}">{{ value }}</d
iv> | 13 <div id="inside" on-test-event="handleEvent" lang="{{ value }}">{{ value }}</d
iv> |
| 11 </template> | 14 </template> |
| 12 <script> | 15 <script> |
| 13 module.exports = class extends SkyElement { | 16 module.exports = class extends SkyElement { |
| 14 created() { | 17 created() { |
| 15 this.lastEvent = null; | 18 this.lastEvent = null; |
| 16 this.value = 10; | 19 this.value = 10; |
| 17 this.shadowRootReadyCount = 0; | 20 this.shadowRootReadyCount = 0; |
| 18 this.changes = []; | 21 this.changes = []; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 35 recordAttributeChange(name, oldValue, newValue) { | 38 recordAttributeChange(name, oldValue, newValue) { |
| 36 this.changes.push({ | 39 this.changes.push({ |
| 37 name: name, | 40 name: name, |
| 38 newValue: newValue, | 41 newValue: newValue, |
| 39 oldValue: oldValue, | 42 oldValue: oldValue, |
| 40 }); | 43 }); |
| 41 } | 44 } |
| 42 }.register(); | 45 }.register(); |
| 43 </script> | 46 </script> |
| 44 </sky-element> | 47 </sky-element> |
| OLD | NEW |