Skip to content

Commit

Permalink
Get rid of old API
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-fix committed Sep 20, 2017
1 parent 3da5b43 commit bace622
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vaadin-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
}

_addActiveListeners() {
this._addEventListenerToNode(this, 'down', () => !this.disabled && this.setAttribute('active', ''));
this._addEventListenerToNode(this, 'up', () => this.removeAttribute('active'));
Polymer.Gestures.addListener(this, 'down', () => !this.disabled && this.setAttribute('active', ''));
Polymer.Gestures.addListener(this, 'up', () => this.removeAttribute('active'));
this.addEventListener('keydown', e => !this.disabled && [13, 32].indexOf(e.keyCode) >= 0 && this.setAttribute('active', ''));
this.addEventListener('keyup', () => this.removeAttribute('active'));
}
Expand Down

0 comments on commit bace622

Please sign in to comment.