Skip to content

Commit 7850011

Browse files
committed
Draggable: _isValidTarget returning boolean
1 parent d32183e commit 7850011

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/jquery.ui.draggable.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ $.widget( "ui.draggable", $.ui.interaction, {
7777
var handle = this.options.handle ? element.closest( this.options.handle ).length : true,
7878
exclude = this.options.exclude ? element.closest( this.options.exclude ).length : false;
7979

80-
return ( handle && !exclude );
80+
// Enforce boolean
81+
return !!( handle && !exclude );
8182
},
8283

8384
_start: function( event, pointerPosition ) {

0 commit comments

Comments
 (0)