mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Draggable: Fix whitespace in trigger function
This commit is contained in:
parent
01e26b0f53
commit
cdcb391f4e
@ -610,14 +610,15 @@ $.widget("ui.draggable", $.ui.mouse, {
|
|||||||
|
|
||||||
// From now on bulk stuff - mainly helpers
|
// From now on bulk stuff - mainly helpers
|
||||||
|
|
||||||
_trigger: function(type, event, ui) {
|
_trigger: function( type, event, ui ) {
|
||||||
ui = ui || this._uiHash();
|
ui = ui || this._uiHash();
|
||||||
$.ui.plugin.call( this, type, [ event, ui, this ], true );
|
$.ui.plugin.call( this, type, [ event, ui, this ], true );
|
||||||
//The absolute position has to be recalculated after plugins
|
|
||||||
if (type === "drag") {
|
// The absolute position has to be recalculated after plugins
|
||||||
this.positionAbs = this._convertPositionTo("absolute");
|
if ( type === "drag" ) {
|
||||||
|
this.positionAbs = this._convertPositionTo( "absolute" );
|
||||||
}
|
}
|
||||||
return $.Widget.prototype._trigger.call(this, type, event, ui);
|
return $.Widget.prototype._trigger.call( this, type, event, ui );
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: {},
|
plugins: {},
|
||||||
|
Loading…
Reference in New Issue
Block a user