| OLD | NEW |
| 1 | 1 |
| 2 Polymer({ | 2 Polymer({ |
| 3 is: 'paper-checkbox', | 3 is: 'paper-checkbox', |
| 4 | 4 |
| 5 behaviors: [ | 5 behaviors: [ |
| 6 Polymer.PaperRadioButtonBehavior | 6 Polymer.PaperInkyFocusBehavior |
| 7 ], | 7 ], |
| 8 | 8 |
| 9 hostAttributes: { | 9 hostAttributes: { |
| 10 role: 'checkbox', | 10 role: 'checkbox', |
| 11 'aria-checked': false, | 11 'aria-checked': false, |
| 12 tabindex: 0 | 12 tabindex: 0 |
| 13 }, | 13 }, |
| 14 | 14 |
| 15 properties: { | 15 properties: { |
| 16 /** | 16 /** |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 _checkedChanged: function(checked) { | 69 _checkedChanged: function(checked) { |
| 70 this.setAttribute('aria-checked', this.checked ? 'true' : 'false'); | 70 this.setAttribute('aria-checked', this.checked ? 'true' : 'false'); |
| 71 this.active = this.checked; | 71 this.active = this.checked; |
| 72 this.fire('iron-change'); | 72 this.fire('iron-change'); |
| 73 }, | 73 }, |
| 74 | 74 |
| 75 _computeCheckboxClass: function(checked) { | 75 _computeCheckboxClass: function(checked) { |
| 76 if (checked) { | 76 if (checked) { |
| 77 return 'checked'; | 77 return 'checked'; |
| 78 } | 78 } |
| 79 return ''; |
| 79 }, | 80 }, |
| 80 | 81 |
| 81 _computeCheckmarkClass: function(checked) { | 82 _computeCheckmarkClass: function(checked) { |
| 82 if (!checked) { | 83 if (!checked) { |
| 83 return 'hidden'; | 84 return 'hidden'; |
| 84 } | 85 } |
| 86 return ''; |
| 85 } | 87 } |
| 86 }) | 88 }) |
| 87 | 89 |
| OLD | NEW |