Fix some JSHint complaints

This commit is contained in:
Tom Hughes 2015-02-23 20:47:38 +00:00
parent 6671a934bf
commit 1596713871
22 changed files with 96 additions and 93 deletions

View file

@ -2,7 +2,7 @@
OSM.Search = function(map) {
$(".search_form input[name=query]").on("input", function(e) {
if ($(e.target).val() == "") {
if ($(e.target).val() === "") {
$(".describe_location").fadeIn(100);
} else {
$(".describe_location").fadeOut(100);
@ -68,7 +68,7 @@ OSM.Search = function(map) {
});
}
function showSearchResult(e) {
function showSearchResult() {
var marker = $(this).data("marker");
if (!marker) {
@ -84,7 +84,7 @@ OSM.Search = function(map) {
$(this).closest("li").addClass("selected");
}
function hideSearchResult(e) {
function hideSearchResult() {
var marker = $(this).data("marker");
if (marker) {