Draggable: Don't guard against invalid helper values.

This commit is contained in:
Scott González 2013-04-11 09:12:11 -04:00
parent 0399156637
commit 99c4de409b

View File

@ -91,7 +91,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
this.dragDimensions = null;
// The actual dragging element, should always be a jQuery object
this.dragEl = ( this.options.helper === true || $.isFunction( this.options.helper ) ) ?
this.dragEl = this.options.helper ?
this._createHelper( pointerPosition ) :
this.element;