make Ox.reverse() work for arrays
This commit is contained in:
parent
1576ba4c48
commit
1f7796b0f8
4 changed files with 18 additions and 12 deletions
|
|
@ -246,6 +246,8 @@
|
|||
> Ox.containsArea(Ox.test.areas[2], Ox.test.areas[3])
|
||||
true
|
||||
@*/
|
||||
// FIXME: Shouldn't this be rewritten as a test
|
||||
// if the intersection is equal to the inner area?
|
||||
Ox.containsArea = function(areaA, areaB) {
|
||||
// If an area crosses the dateline,
|
||||
// we split it into two parts,
|
||||
|
|
@ -287,9 +289,9 @@
|
|||
> Ox.intersectAreas([Ox.test.areas[2], Ox.test.areas[3]])
|
||||
{sw: {lat: 25, lng: -155}, ne: {lat: 30, lng: -150}}
|
||||
@*/
|
||||
// FIXME: handle the a corner case where
|
||||
// two areas have two intersections
|
||||
Ox.intersectAreas = function(areas) {
|
||||
// FIXME: handle the a corner case where
|
||||
// two areas have two intersections
|
||||
var intersections, ret;
|
||||
// If an area crosses the dateline,
|
||||
// we split it into two parts,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue