use [].slice, not Ox.sub
This commit is contained in:
parent
915e98f829
commit
f990f3b857
7 changed files with 10 additions and 10 deletions
|
|
@ -314,7 +314,7 @@
|
|||
}
|
||||
};
|
||||
}
|
||||
Ox.forEach(Ox.sub(areas, 1), function(parts) {
|
||||
Ox.forEach(areas.slice(1), function(parts) {
|
||||
if (ret.length == 1 && parts.length == 1) {
|
||||
ret = intersect(ret[0], parts[0]);
|
||||
} else {
|
||||
|
|
@ -383,7 +383,7 @@
|
|||
});
|
||||
return ret;
|
||||
}
|
||||
Ox.sub(areas, 1).forEach(function(area) {
|
||||
areas.slice(1).forEach(function(area) {
|
||||
var index, indices, intersections;
|
||||
if (area.sw.lat < ret.sw.lat) {
|
||||
ret.sw.lat = area.sw.lat;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue