From 66d11338a9ab176feeb2cc11a0a36ef446a1a570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Sat, 7 Jan 2012 20:44:51 -0500 Subject: [PATCH] Draggable: Fixed comments about events. --- ui/jquery.ui.draggable.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js index c1411e065..f1d1546e4 100644 --- a/ui/jquery.ui.draggable.js +++ b/ui/jquery.ui.draggable.js @@ -165,7 +165,7 @@ $.widget( "ui.draggable", $.ui.interaction, { this._preparePosition( event ); - // If user stops propagation, leave helper there ( if there's one ), disallow any CSS changes + // If user cancels start, don't allow dragging if ( this._trigger( "start", event, this._uiHash() ) === false ) { return false; } @@ -177,7 +177,7 @@ $.widget( "ui.draggable", $.ui.interaction, { _move: function( event ) { this._preparePosition( event ); - // If user stops propagation, leave helper there ( if there's one ), disallow any CSS changes + // If user cancels drag, don't move the element if ( this._trigger( "drag", event, this._uiHash() ) === false ) { return; } @@ -191,7 +191,7 @@ $.widget( "ui.draggable", $.ui.interaction, { _stop: function( event ) { this._preparePosition( event ); - // If user stops propagation, leave helper there, disallow any CSS changes + // If user cancels stop, leave helper there, disallow any CSS changes if ( this._trigger( "stop", event, this._uiHash() ) === false ) { this._setCss( event ); if ( this.options.helper ) {