Replace some !=s with !==

This commit is contained in:
Nick Krichevsky 2015-03-05 17:22:55 -05:00
parent dfb83aff53
commit 6476390d4b

View file

@ -450,7 +450,7 @@ document.addEventListener('DOMContentLoaded', function() {
});
//Workaround to prevent letters from triggering events.
filterInput.addEventListener('keydown', function(event){
if (event.keyCode!=40 && event.keyCode!=38 && event.keyCode!=13 && event.keyCode!=33 && event.keyCode!=34){
if (event.keyCode!==40 && event.keyCode!==38 && event.keyCode!==13 && event.keyCode!==33 && event.keyCode!==34){
event.stopPropagation();
}
if (event.keyCode===16){
@ -709,7 +709,8 @@ document.addEventListener('DOMContentLoaded', function() {
'cancellable':true
}));
}
}
}
});