Skip to content

Commit 718d3ca

Browse files
committed
Check if jQuery UI draggable is loaded
1 parent f9cca71 commit 718d3ca

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
@@ -202,7 +202,7 @@
202202
me.parent().append(rail);
203203

204204
// make it draggable
205-
if (o.railDraggable)
205+
if (o.railDraggable && $.ui && typeof($.ui.draggable) == 'function')
206206
{
207207
bar.draggable({
208208
axis: 'y',

0 commit comments

Comments
 (0)