| OLD | NEW |
| 1 | 1 Polymer({ |
| 2 Polymer({ | |
| 3 is: 'paper-toggle-button', | 2 is: 'paper-toggle-button', |
| 4 | 3 |
| 5 behaviors: [ | 4 behaviors: [ |
| 6 Polymer.PaperInkyFocusBehavior | 5 Polymer.PaperInkyFocusBehavior |
| 7 ], | 6 ], |
| 8 | 7 |
| 9 hostAttributes: { | 8 hostAttributes: { |
| 10 role: 'button', | 9 role: 'button', |
| 11 'aria-pressed': 'false', | 10 'aria-pressed': 'false', |
| 12 tabindex: 0 | 11 tabindex: 0 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 Math.max(0, this._trackChecked ? this._width + dx : dx)); | 102 Math.max(0, this._trackChecked ? this._width + dx : dx)); |
| 104 this.translate3d(this._x + 'px', 0, 0, this.$.toggleButton); | 103 this.translate3d(this._x + 'px', 0, 0, this.$.toggleButton); |
| 105 this._userActivate(this._x > (this._width / 2)); | 104 this._userActivate(this._x > (this._width / 2)); |
| 106 }, | 105 }, |
| 107 | 106 |
| 108 _trackEnd: function(track) { | 107 _trackEnd: function(track) { |
| 109 this.$.toggleButton.classList.remove('dragging'); | 108 this.$.toggleButton.classList.remove('dragging'); |
| 110 this.transform('', this.$.toggleButton); | 109 this.transform('', this.$.toggleButton); |
| 111 } | 110 } |
| 112 | 111 |
| 113 }); | 112 }); |
| 114 | |
| OLD | NEW |