Skip to content

Commit 96d9bcf

Browse files
committed
Merge pull request rochal#69 from steelywing/patch-1
Check if jQuery UI draggable is loaded
2 parents 1557aee + 718d3ca commit 96d9bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.slimscroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
me.parent().append(rail);
206206

207207
// make it draggable
208-
if (o.railDraggable)
208+
if (o.railDraggable && $.ui && typeof($.ui.draggable) == 'function')
209209
{
210210
bar.draggable({
211211
axis: 'y',

0 commit comments

Comments
 (0)