use Ox.sort, fixes #2802
This commit is contained in:
parent
24027c0bcb
commit
2d5ad4500e
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue