projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
656170c
)
short circuit empty geocode requests
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Sun, 29 Nov 2009 23:56:08 +0000
(18:56 -0500)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Sun, 29 Nov 2009 23:56:08 +0000
(18:56 -0500)
kronolith/js/kronolith.js
patch
|
blob
|
history
diff --git
a/kronolith/js/kronolith.js
b/kronolith/js/kronolith.js
index
c62d6c0
..
7f3449d
100644
(file)
--- a/
kronolith/js/kronolith.js
+++ b/
kronolith/js/kronolith.js
@@
-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();