mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Draggable: _isValidTarget
returning boolean
This commit is contained in:
parent
d32183edc4
commit
78500111da
3
ui/jquery.ui.draggable.js
vendored
3
ui/jquery.ui.draggable.js
vendored
@ -77,7 +77,8 @@ $.widget( "ui.draggable", $.ui.interaction, {
|
|||||||
var handle = this.options.handle ? element.closest( this.options.handle ).length : true,
|
var handle = this.options.handle ? element.closest( this.options.handle ).length : true,
|
||||||
exclude = this.options.exclude ? element.closest( this.options.exclude ).length : false;
|
exclude = this.options.exclude ? element.closest( this.options.exclude ).length : false;
|
||||||
|
|
||||||
return ( handle && !exclude );
|
// Enforce boolean
|
||||||
|
return !!( handle && !exclude );
|
||||||
},
|
},
|
||||||
|
|
||||||
_start: function( event, pointerPosition ) {
|
_start: function( event, pointerPosition ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user