Skip to content

Commit 99c4de4

Browse files
committed
Draggable: Don't guard against invalid helper values.
1 parent 0399156 commit 99c4de4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.draggable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
9191
this.dragDimensions = null;
9292

9393
// The actual dragging element, should always be a jQuery object
94-
this.dragEl = ( this.options.helper === true || $.isFunction( this.options.helper ) ) ?
94+
this.dragEl = this.options.helper ?
9595
this._createHelper( pointerPosition ) :
9696
this.element;
9797

0 commit comments

Comments
 (0)