From 7cd8debe730c91909c0a6d8aff06e077f6b83ecc Mon Sep 17 00:00:00 2001 From: Dave Stein Date: Tue, 11 Dec 2012 20:20:56 -0500 Subject: [PATCH] Draggable: Modified some backCompats to use dragstart rather than dragbeforestart --- 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 d575cf4e4..cd2fa873c 100644 --- a/ui/jquery.ui.draggable.js +++ b/ui/jquery.ui.draggable.js @@ -540,7 +540,7 @@ if ( $.uiBackCompat !== false ) { body = $( document.body ); // Cache original cursor to set back - this.element.on( "dragbeforestart", function( e, ui ) { + this.element.on( "dragstart", function( e, ui ) { startCursor = body.css( "cursor" ); }); @@ -687,7 +687,7 @@ if ( $.uiBackCompat !== false ) { return; } - this.element.on( "dragbeforestart", function( e, ui ) { + this.element.on( "dragstart", function( e, ui ) { // Cache the original opacity of draggable element to reset later originalOpacity = self.dragEl.css( 'opacity' ); @@ -770,7 +770,7 @@ if ( $.uiBackCompat !== false ) { return; } - this.element.on( "dragbeforestart", function( e, ui ) { + this.element.on( "dragstart", function( e, ui ) { // Cache the original zIndex of draggable element to reset later originalZIndex = self.dragEl.css( 'z-index' );