diff options
author | Struan Donald <struan@exo.org.uk> | 2012-06-15 15:01:05 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-06-15 15:01:05 +0100 |
commit | 925232a1e48850ab1c5087fe555d7dc71496d726 (patch) | |
tree | 8a048416507820b1eb54f4b9ce69fa6b2eefdea2 /phonegap/www/js | |
parent | cc1aa4a6676db38eabed168327941c6aa93b4654 (diff) |
fix jslint issues and remove unused js files
Diffstat (limited to 'phonegap/www/js')
-rw-r--r-- | phonegap/www/js/map-bing.js | 2 | ||||
-rw-r--r-- | phonegap/www/js/map-google.js | 4 | ||||
-rw-r--r-- | phonegap/www/js/southampton.js | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/phonegap/www/js/map-bing.js b/phonegap/www/js/map-bing.js index 856e4f188..715a8efc9 100644 --- a/phonegap/www/js/map-bing.js +++ b/phonegap/www/js/map-bing.js @@ -17,6 +17,6 @@ $(function(){ Microsoft.Maps.Events.addHandler(map, "viewchangestart", function(e) { /* Doesn't work */ - if (map.getTargetZoom() < 12) return false; + if (map.getTargetZoom() < 12) { return false; } }); }); diff --git a/phonegap/www/js/map-google.js b/phonegap/www/js/map-google.js index 742b55d47..7da21ba09 100644 --- a/phonegap/www/js/map-google.js +++ b/phonegap/www/js/map-google.js @@ -16,7 +16,7 @@ $(function(){ }); google.maps.event.addListener(map, "zoom_changed", function() { - if (map.getZoom() < 13) map.setZoom(13); - if (map.getZoom() > 17) map.setZoom(17); + if (map.getZoom() < 13) { map.setZoom(13); } + if (map.getZoom() > 17) { map.setZoom(17); } }); }); diff --git a/phonegap/www/js/southampton.js b/phonegap/www/js/southampton.js index 1f3e16105..e7af4fcaf 100644 --- a/phonegap/www/js/southampton.js +++ b/phonegap/www/js/southampton.js @@ -15,7 +15,7 @@ $(function(){ } }).blur(function(){ var input = $(this); - if (input.val() == '' || input.val() == input.attr('placeholder')) { + if (input.val() === '' || input.val() == input.attr('placeholder')) { input.css({ 'color': '#999999' }); input.val(input.attr('placeholder')); } |