From 37812628374811d76407c10fa7a1d387f9fdcd54 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 7 Dec 2013 15:07:52 +0100 Subject: [PATCH] use .on --- source/Ox.UI/js/Form/Range.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Form/Range.js b/source/Ox.UI/js/Form/Range.js index 41a9b618..168e0419 100644 --- a/source/Ox.UI/js/Form/Range.js +++ b/source/Ox.UI/js/Form/Range.js @@ -138,8 +138,10 @@ Ox.Range = function(options, self) { .css({ width: self.trackImageWidths[i] + 'px' }) - .mousedown(function(e) { - e.preventDefault(); // prevent drag + .on({ + mousedown: function(e) { + e.preventDefault(); // prevent drag + } }) .appendTo(self.$trackImages); //left += self.trackImageWidths[i];