From cdb396d904bbf7385639b84e12bed8910904cca0 Mon Sep 17 00:00:00 2001 From: Jordan Humphreys Date: Wed, 22 Jun 2016 09:55:53 -0700 Subject: [PATCH] Syntax cleanup. --- js/tribute.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/tribute.js b/js/tribute.js index b8f89442..9f2e498f 100644 --- a/js/tribute.js +++ b/js/tribute.js @@ -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
  • container for the click'); + throw new Error('cannot find the
  • container for the click') } } tribute.selectItemAtIndex(li.getAttribute('data-index'))