@@ -386,8 +386,8 @@ $.widget("ui.draggable", $.ui.mouse, {
386386 }
387387
388388 return {
389- top : po . top + ( parseInt ( this . offsetParent . css ( "borderTopWidth" ) , 10 ) || 0 ) ,
390- left : po . left + ( parseInt ( this . offsetParent . css ( "borderLeftWidth" ) , 10 ) || 0 )
389+ top : po . top + ( parseInt ( this . offsetParent . css ( "borderTopWidth" ) , 10 ) || 0 ) ,
390+ left : po . left + ( parseInt ( this . offsetParent . css ( "borderLeftWidth" ) , 10 ) || 0 )
391391 } ;
392392
393393 } ,
@@ -409,10 +409,10 @@ $.widget("ui.draggable", $.ui.mouse, {
409409
410410 _cacheMargins : function ( ) {
411411 this . margins = {
412- left : ( parseInt ( this . element . css ( "marginLeft" ) , 10 ) || 0 ) ,
413- top : ( parseInt ( this . element . css ( "marginTop" ) , 10 ) || 0 ) ,
414- right : ( parseInt ( this . element . css ( "marginRight" ) , 10 ) || 0 ) ,
415- bottom : ( parseInt ( this . element . css ( "marginBottom" ) , 10 ) || 0 )
412+ left : ( parseInt ( this . element . css ( "marginLeft" ) , 10 ) || 0 ) ,
413+ top : ( parseInt ( this . element . css ( "marginTop" ) , 10 ) || 0 ) ,
414+ right : ( parseInt ( this . element . css ( "marginRight" ) , 10 ) || 0 ) ,
415+ bottom : ( parseInt ( this . element . css ( "marginBottom" ) , 10 ) || 0 )
416416 } ;
417417 } ,
418418
@@ -429,7 +429,7 @@ $.widget("ui.draggable", $.ui.mouse, {
429429 o = this . options ,
430430 document = this . document [ 0 ] ;
431431
432- this . relative_container = null ;
432+ this . relativeContainer = null ;
433433
434434 if ( ! o . containment ) {
435435 this . containment = null ;
@@ -480,7 +480,7 @@ $.widget("ui.draggable", $.ui.mouse, {
480480 ( over ? Math . max ( ce . scrollWidth , ce . offsetWidth ) : ce . offsetWidth ) - ( parseInt ( c . css ( "borderRightWidth" ) , 10 ) || 0 ) - ( parseInt ( c . css ( "paddingRight" ) , 10 ) || 0 ) - this . helperProportions . width - this . margins . left - this . margins . right ,
481481 ( over ? Math . max ( ce . scrollHeight , ce . offsetHeight ) : ce . offsetHeight ) - ( parseInt ( c . css ( "borderBottomWidth" ) , 10 ) || 0 ) - ( parseInt ( c . css ( "paddingBottom" ) , 10 ) || 0 ) - this . helperProportions . height - this . margins . top - this . margins . bottom
482482 ] ;
483- this . relative_container = c ;
483+ this . relativeContainer = c ;
484484 } ,
485485
486486 _convertPositionTo : function ( d , pos ) {
@@ -533,8 +533,8 @@ $.widget("ui.draggable", $.ui.mouse, {
533533 // If we are not dragging yet, we won't check for options
534534 if ( constrainPosition ) {
535535 if ( this . containment ) {
536- if ( this . relative_container ) {
537- co = this . relative_container . offset ( ) ;
536+ if ( this . relativeContainer ) {
537+ co = this . relativeContainer . offset ( ) ;
538538 containment = [
539539 this . containment [ 0 ] + co . left ,
540540 this . containment [ 1 ] + co . top ,
@@ -978,8 +978,8 @@ $.ui.plugin.add("draggable", "stack", {
978978 start : function ( event , ui , instance ) {
979979 var min ,
980980 o = instance . options ,
981- group = $ . makeArray ( $ ( o . stack ) ) . sort ( function ( a , b ) {
982- return ( parseInt ( $ ( a ) . css ( "zIndex" ) , 10 ) || 0 ) - ( parseInt ( $ ( b ) . css ( "zIndex" ) , 10 ) || 0 ) ;
981+ group = $ . makeArray ( $ ( o . stack ) ) . sort ( function ( a , b ) {
982+ return ( parseInt ( $ ( a ) . css ( "zIndex" ) , 10 ) || 0 ) - ( parseInt ( $ ( b ) . css ( "zIndex" ) , 10 ) || 0 ) ;
983983 } ) ;
984984
985985 if ( ! group . length ) { return ; }
0 commit comments