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