diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2014-08-16 21:22:58 -0400 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2014-08-16 21:22:58 -0400 |
commit | cdcb391f4e33de24df8ff5ce17aeea42f3835dc0 (patch) | |
tree | 0c19d730ec29eb3816dd0c66a3f58a763d087950 | |
parent | 01e26b0f5388a855ad86d40e1284c9c79a9abd3b (diff) | |
download | jquery-ui-cdcb391f4e33de24df8ff5ce17aeea42f3835dc0.tar.gz jquery-ui-cdcb391f4e33de24df8ff5ce17aeea42f3835dc0.zip |
Draggable: Fix whitespace in trigger function
-rw-r--r-- | ui/draggable.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ui/draggable.js b/ui/draggable.js index b96fca0d2..6bd8ea1c1 100644 --- a/ui/draggable.js +++ b/ui/draggable.js @@ -610,14 +610,15 @@ $.widget("ui.draggable", $.ui.mouse, { // From now on bulk stuff - mainly helpers - _trigger: function(type, event, ui) { + _trigger: function( type, event, ui ) { ui = ui || this._uiHash(); $.ui.plugin.call( this, type, [ event, ui, this ], true ); - //The absolute position has to be recalculated after plugins - if (type === "drag") { - this.positionAbs = this._convertPositionTo("absolute"); + + // The absolute position has to be recalculated after plugins + 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: {}, |