summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-11-20 14:46:27 -0500
committerCraig Andrews <candrews@integralblue.com>2009-11-20 15:18:39 -0500
commitb688c572c9dd8a17fcedb40358dd0499357abdab (patch)
tree4147d8522db40781f4fb0dfb9e3d7344699e26b0
parent09a021cefe9a906991744709db26f4db06df5a2b (diff)
Fix javascript errors emitted in browsers that do not support w3c geolocation
-rw-r--r--js/geometa.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/geometa.js b/js/geometa.js
index ced5be060..9c603ceae 100644
--- a/js/geometa.js
+++ b/js/geometa.js
@@ -1,5 +1,5 @@
// A shim to implement the W3C Geolocation API Specification using Gears or the Ajax API
-if ( typeof navigator.geolocation == "undefined" || navigator.geolocation.shim ) (function(){
+if (typeof navigator.geolocation == "undefined" || navigator.geolocation.shim ) (function(){
// -- BEGIN GEARS_INIT
(function() {
@@ -94,7 +94,7 @@ var GearsGeoLocation = (function() {
}
};
-})();
+});
var AjaxGeoLocation = (function() {
// -- PRIVATE
@@ -208,9 +208,9 @@ var AjaxGeoLocation = (function() {
}
};
-})();
+});
// If you have Gears installed use that, else use Ajax ClientLocation
-navigator.geolocation = (window.google && google.gears) ? GearsGeoLocation : AjaxGeoLocation;
+navigator.geolocation = (window.google && google.gears) ? GearsGeoLocation() : AjaxGeoLocation();
})();