short circuit empty geocode requests
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 29 Nov 2009 23:56:08 +0000 (18:56 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 29 Nov 2009 23:56:08 +0000 (18:56 -0500)
kronolith/js/kronolith.js

index c62d6c0..7f3449d 100644 (file)
@@ -3530,6 +3530,9 @@ KronolithEventMap =
    onGeocode: function(r) { },
 
    geocode: function(a) {
+       if (!a) {
+           return;
+       }
        var gc = new HordeMap.Geocoder[Kronolith.conf.maps.geocoder]();
        gc.geocode(a, function(r) {
            r = r.shift();