This commit is contained in:
rolux 2012-06-19 18:00:59 +02:00
parent 98b7929fc3
commit a544de5c60

View file

@ -224,12 +224,12 @@ Ox.api = function(items, options) {
east: data.area.ne.lng
};
*/
data.area = data.items.length == 0 ? {
data.area = data.items == 0 ? {
south: -Ox.MAX_LATITUDE,
west: -180,
north: Ox.MAX_LATITUDE,
east: 180
} : data.items.reduce(function(prev, curr) {
} : result.data.items.reduce(function(prev, curr) {
return {
south: Ox.min(prev.south, curr.south),
west: Ox.min(prev.west, curr.west),