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 31, 2017
1 parent cd4c8a6 commit 069af68
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 @@ -41,7 +41,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 069af68

Please sign in to comment.