use Ox.sort, fixes #2802

This commit is contained in:
j 2015-06-25 14:28:56 +02:00
parent 24027c0bcb
commit 2d5ad4500e

View file

@ -400,7 +400,7 @@ Ox.AnnotationFolder = function(options, self) {
} }
function crossesPoint() { function crossesPoint() {
var positions = [self.position, self.options.position].sort(); var positions = Ox.sort([self.position, self.options.position]);
return self.points.some(function(point) { return self.points.some(function(point) {
return point >= positions[0] && point <= positions[1]; return point >= positions[0] && point <= positions[1];
}); });