]> source.dussan.org Git - jquery-ui.git/commitdiff
Draggable: Fix whitespace in trigger function
authorMike Sherov <mike.sherov@gmail.com>
Sun, 17 Aug 2014 01:22:58 +0000 (21:22 -0400)
committerMike Sherov <mike.sherov@gmail.com>
Sun, 17 Aug 2014 01:22:58 +0000 (21:22 -0400)
ui/draggable.js

index b96fca0d208c449cbc5dabac26ab718e7c8bea33..6bd8ea1c18f645afd8a46450b3152f19a5c42f5b 100644 (file)
@@ -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: {},