| OLD | NEW |
| 1 Polymer({ | 1 |
| 2 Polymer({ |
| 2 is: 'paper-toggle-button', | 3 is: 'paper-toggle-button', |
| 3 | 4 |
| 4 behaviors: [ | 5 behaviors: [ |
| 5 Polymer.PaperInkyFocusBehavior, | 6 Polymer.PaperInkyFocusBehavior, |
| 6 Polymer.IronCheckedElementBehavior | 7 Polymer.IronCheckedElementBehavior |
| 7 ], | 8 ], |
| 8 | 9 |
| 9 hostAttributes: { | 10 hostAttributes: { |
| 10 role: 'button', | 11 role: 'button', |
| 11 'aria-pressed': 'false', | 12 'aria-pressed': 'false', |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 Math.max(0, this._trackChecked ? this._width + dx : dx)); | 71 Math.max(0, this._trackChecked ? this._width + dx : dx)); |
| 71 this.translate3d(this._x + 'px', 0, 0, this.$.toggleButton); | 72 this.translate3d(this._x + 'px', 0, 0, this.$.toggleButton); |
| 72 this._userActivate(this._x > (this._width / 2)); | 73 this._userActivate(this._x > (this._width / 2)); |
| 73 }, | 74 }, |
| 74 | 75 |
| 75 _trackEnd: function(track) { | 76 _trackEnd: function(track) { |
| 76 this.$.toggleButton.classList.remove('dragging'); | 77 this.$.toggleButton.classList.remove('dragging'); |
| 77 this.transform('', this.$.toggleButton); | 78 this.transform('', this.$.toggleButton); |
| 78 } | 79 } |
| 79 | 80 |
| 80 }); | 81 }); |
| 82 |
| OLD | NEW |