| OLD | NEW |
| 1 /** | 1 |
| 2 |
| 3 /** |
| 2 * Use `Polymer.IronCheckedElementBehavior` to implement a custom element | 4 * Use `Polymer.IronCheckedElementBehavior` to implement a custom element |
| 3 * that has a `checked` property, which can be used for validation if the | 5 * that has a `checked` property, which can be used for validation if the |
| 4 * element is also `required`. Element instances implementing this behavior | 6 * element is also `required`. Element instances implementing this behavior |
| 5 * will also be registered for use in an `iron-form` element. | 7 * will also be registered for use in an `iron-form` element. |
| 6 * | 8 * |
| 7 * @demo demo/index.html | 9 * @demo demo/index.html |
| 8 * @polymerBehavior Polymer.IronCheckedElementBehavior | 10 * @polymerBehavior Polymer.IronCheckedElementBehavior |
| 9 */ | 11 */ |
| 10 Polymer.IronCheckedElementBehaviorImpl = { | 12 Polymer.IronCheckedElementBehaviorImpl = { |
| 11 | 13 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 this.value = this.checked ? 'on' : ''; | 80 this.value = this.checked ? 'on' : ''; |
| 79 this.fire('iron-change'); | 81 this.fire('iron-change'); |
| 80 } | 82 } |
| 81 }; | 83 }; |
| 82 | 84 |
| 83 /** @polymerBehavior Polymer.IronCheckedElementBehavior */ | 85 /** @polymerBehavior Polymer.IronCheckedElementBehavior */ |
| 84 Polymer.IronCheckedElementBehavior = [ | 86 Polymer.IronCheckedElementBehavior = [ |
| 85 Polymer.IronFormElementBehavior, | 87 Polymer.IronFormElementBehavior, |
| 86 Polymer.IronValidatableBehavior, | 88 Polymer.IronValidatableBehavior, |
| 87 Polymer.IronCheckedElementBehaviorImpl | 89 Polymer.IronCheckedElementBehaviorImpl |
| 88 ]; | 90 ]; |
| 91 |
| OLD | NEW |