This commit is contained in:
rolux 2012-05-25 09:32:49 +02:00
parent 7eb6ec56b8
commit 8aa2e7f29c

View file

@ -266,10 +266,10 @@
Ox.forEach(areas[0], function(area0) {
ret = contains(area0, area1);
// Break if the outer part contains the inner part
ret && Ox.Break()();
ret && Ox.Break();
});
// Break if no outer part contains the inner part
!ret && Ox.Break()();
!ret && Ox.Break();
});
return ret;
};
@ -327,7 +327,7 @@
: Ox.joinAreas(intersections);
}
if (ret === null) {
Ox.Break()();
Ox.Break();
} else {
ret = splitArea(ret);
}
@ -378,7 +378,7 @@
Ox.forEach(gaps, function(gap, i) {
if (Ox.containsArea(gap, area)) {
ret = i;
Ox.Break()();
Ox.Break();
}
});
return ret;