Draggable: Modified some backCompats to use dragstart rather than dragbeforestart

This commit is contained in:
Dave Stein 2012-12-11 20:20:56 -05:00
parent d2e726d172
commit 7cd8debe73

View File

@ -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' );