use [].slice, not Ox.sub

This commit is contained in:
rolux 2012-05-24 11:02:59 +02:00
commit f990f3b857
7 changed files with 10 additions and 10 deletions

View file

@ -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;