diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js index 904cc51dc..e10101768 100644 --- a/ui/jquery.ui.draggable.js +++ b/ui/jquery.ui.draggable.js @@ -77,7 +77,8 @@ $.widget( "ui.draggable", $.ui.interaction, { var handle = this.options.handle ? element.closest( this.options.handle ).length : true, exclude = this.options.exclude ? element.closest( this.options.exclude ).length : false; - return ( handle && !exclude ); + // Enforce boolean + return !!( handle && !exclude ); }, _start: function( event, pointerPosition ) {