Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
Uses const instead of var
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Souza committed Jan 30, 2017
1 parent c0f5aee commit 71044e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Select extends Component {
* @protected
*/
focusIndex_(index) {
var option = this.element.querySelector(`.select-option:nth-child(${index + 1}) a`);
const option = this.element.querySelector(`.select-option:nth-child(${index + 1}) a`);
if (option) {
this.focusedIndex_ = index;
option.focus();
Expand Down

0 comments on commit 71044e2

Please sign in to comment.