projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a59937f
)
ensure we have a callback, fix status code return
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Tue, 13 Apr 2010 01:43:03 +0000
(21:43 -0400)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Tue, 13 Apr 2010 01:43:03 +0000
(21:43 -0400)
horde/js/hordemap/google.js
patch
|
blob
|
history
diff --git
a/horde/js/hordemap/google.js
b/horde/js/hordemap/google.js
index
5892598
..
3d0fde9
100644
(file)
--- a/
horde/js/hordemap/google.js
+++ b/
horde/js/hordemap/google.js
@@
-63,7
+63,7
@@
HordeMap.Geocoder.Google = Class.create(
_reverseCallback: function(r)
{
if (r.Status.code != 200) {
- this._errorCallback(r.code);
+ this._errorCallback(r.
Status.
code);
return;
}
var results = [];
@@
-84,6
+84,7
@@
HordeMap.Geocoder.Google = Class.create(
reverseGeocode: function(latlon, completeCallback, errorCallback)
{
this._userCallback = completeCallback;
+ this._errorCallback = errorCallback || function () {};
this.gc.getLocations(new GLatLng(latlon.lat, latlon.lon), this._reverseCallback.bind(this));
}
});