From 718d3ca28d3823ff2be0674585fc328a91957524 Mon Sep 17 00:00:00 2001 From: Wing Date: Wed, 15 May 2013 19:20:34 +0900 Subject: [PATCH] Check if jQuery UI draggable is loaded --- jquery.slimscroll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.slimscroll.js b/jquery.slimscroll.js index 15062e0..0e13f5c 100644 --- a/jquery.slimscroll.js +++ b/jquery.slimscroll.js @@ -202,7 +202,7 @@ me.parent().append(rail); // make it draggable - if (o.railDraggable) + if (o.railDraggable && $.ui && typeof($.ui.draggable) == 'function') { bar.draggable({ axis: 'y',