diff --git a/source/Ox/js/Array.js b/source/Ox/js/Array.js index e3876d2b..44b32a19 100644 --- a/source/Ox/js/Array.js +++ b/source/Ox/js/Array.js @@ -224,12 +224,12 @@ Ox.api = function(items, options) { east: data.area.ne.lng }; */ - data.area = items.length == 0 ? { + data.area = data.items.length == 0 ? { south: -Ox.MAX_LATITUDE, west: -180, north: Ox.MAX_LATITUDE, east: 180 - } : items.reduce(function(prev, curr) { + } : data.items.reduce(function(prev, curr) { return { south: Ox.min(prev.south, curr.south), west: Ox.min(prev.west, curr.west),