Skip to content

Commit

Permalink
Syntax cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Humphreys committed Jun 22, 2016
1 parent 007e618 commit cdb396d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/tribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ if (!Array.prototype.find) {
if (tribute.menu && tribute.menu.contains(event.target)) {
let li = event.target
while (li.nodeName.toLowerCase() !== 'li') {
li = li.parentNode;
li = li.parentNode
if (!li || li === tribute.menu) {
throw new Error('cannot find the <li> container for the click');
throw new Error('cannot find the <li> container for the click')
}
}
tribute.selectItemAtIndex(li.getAttribute('data-index'))
Expand Down

0 comments on commit cdb396d

Please sign in to comment.