OLD | NEW |
1 | 1 |
2 Polymer({ | 2 Polymer({ |
3 is: 'paper-toggle-button', | 3 is: 'paper-toggle-button', |
4 | 4 |
5 behaviors: [ | 5 behaviors: [ |
6 Polymer.PaperRadioButtonBehavior | 6 Polymer.PaperRadioButtonBehavior |
7 ], | 7 ], |
8 | 8 |
9 hostAttributes: { | 9 hostAttributes: { |
10 role: 'button', | 10 role: 'button', |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 this._userActivate(this._x > (this._width / 2)); | 105 this._userActivate(this._x > (this._width / 2)); |
106 }, | 106 }, |
107 | 107 |
108 _trackEnd: function(track) { | 108 _trackEnd: function(track) { |
109 this.$.toggleButton.classList.remove('dragging'); | 109 this.$.toggleButton.classList.remove('dragging'); |
110 this.transform('', this.$.toggleButton); | 110 this.transform('', this.$.toggleButton); |
111 } | 111 } |
112 | 112 |
113 }); | 113 }); |
114 | 114 |
OLD | NEW |