diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 06:39:14 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 06:39:14 -0400 |
commit | 2582bfab46613da613f1a3354bc733b68a110b95 (patch) | |
tree | 5515634203be660eccf283b14868ade5f2ddf3e5 /ui/jquery.ui.position.js | |
parent | bc44e61dd9e6797bb23bc3038d43436a8ba052c3 (diff) | |
download | jquery-ui-2582bfab46613da613f1a3354bc733b68a110b95.tar.gz jquery-ui-2582bfab46613da613f1a3354bc733b68a110b95.zip |
Position: Removed offset option. Fixes #6982 - Position: Remove offset option.
Diffstat (limited to 'ui/jquery.ui.position.js')
-rw-r--r-- | ui/jquery.ui.position.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index 5b595a8c0..edbb0f6ff 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -478,40 +478,4 @@ $.ui.position = { testElementParent.removeChild( testElement ); })(); -// DEPRECATED -if ( $.uiBackCompat !== false ) { - // offset option - (function( $ ) { - var _position = $.fn.position; - $.fn.position = function( options ) { - if ( !options || !options.offset ) { - return _position.call( this, options ); - } - var offset = options.offset.split( " " ), - at = options.at.split( " " ); - if ( offset.length === 1 ) { - offset[ 1 ] = offset[ 0 ]; - } - if ( /^\d/.test( offset[ 0 ] ) ) { - offset[ 0 ] = "+" + offset[ 0 ]; - } - if ( /^\d/.test( offset[ 1 ] ) ) { - offset[ 1 ] = "+" + offset[ 1 ]; - } - if ( at.length === 1 ) { - if ( /left|center|right/.test( at[ 0 ] ) ) { - at[ 1 ] = "center"; - } else { - at[ 1 ] = at[ 0 ]; - at[ 0 ] = "center"; - } - } - return _position.call( this, $.extend( options, { - at: at[ 0 ] + offset[ 0 ] + " " + at[ 1 ] + offset[ 1 ], - offset: undefined - } ) ); - }; - }( jQuery ) ); -} - }( jQuery ) ); |