Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

whitelist specific keys to prevent re-rendering search results #56

Merged
merged 13 commits into from
Jan 27, 2016
Prev Previous commit
Next Next commit
added missing semicolons
  • Loading branch information
egladman committed Jan 16, 2016
commit 56a25b11b9190aa1a8f234b085f1c5eab6287aee
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@

// if the key pressed isn't one of the following whitelisted codes precede
if( eval(keyCodes) ){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eval can be harmful.

emptyResultsContainer()
emptyResultsContainer();
if( e.target.value.length > 0 ){
render( repository.search(e.target.value) )
render( repository.search(e.target.value) );
}
}

Expand Down