From 98b7929fc38a28042d567ab86e74edd2fadfb657 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 19 Jun 2012 17:59:31 +0200 Subject: [PATCH] typo --- source/Ox/js/Array.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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),