From 2d5ad4500e3559805342a0a942079ee92d8b6e1e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 25 Jun 2015 14:28:56 +0200 Subject: [PATCH] use Ox.sort, fixes #2802 --- source/UI/js/Video/AnnotationFolder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/UI/js/Video/AnnotationFolder.js b/source/UI/js/Video/AnnotationFolder.js index d8d527b3..93fadd93 100644 --- a/source/UI/js/Video/AnnotationFolder.js +++ b/source/UI/js/Video/AnnotationFolder.js @@ -400,7 +400,7 @@ Ox.AnnotationFolder = function(options, self) { } 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 point >= positions[0] && point <= positions[1]; });