aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.position.js
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2011-02-25 11:12:21 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2011-02-25 11:16:16 +0100
commit6a5eb351c767c3e5879d2cdcd4489b5afa7f03de (patch)
tree4a2a459e8b7ea7e8b5d3d0fd5bad6c2e60a12345 /ui/jquery.ui.position.js
parentb65583a0292887403b0613cbdb4e8dee1d5dbe8f (diff)
downloadjquery-ui-6a5eb351c767c3e5879d2cdcd4489b5afa7f03de.tar.gz
jquery-ui-6a5eb351c767c3e5879d2cdcd4489b5afa7f03de.zip
Position: Drop offset-as-a-setter from position, 1.9 won't support core
1.3 anymore
Diffstat (limited to 'ui/jquery.ui.position.js')
-rw-r--r--ui/jquery.ui.position.js35
1 files changed, 0 insertions, 35 deletions
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js
index 8bdc462dd..6f223b424 100644
--- a/ui/jquery.ui.position.js
+++ b/ui/jquery.ui.position.js
@@ -213,39 +213,4 @@ $.ui.position = {
}
};
-// offset setter from jQuery 1.4
-if ( !$.offset.setOffset ) {
- $.offset.setOffset = function( elem, options ) {
- // set position first, in-case top/left are set even on static elem
- if ( /static/.test( $.curCSS( elem, "position" ) ) ) {
- elem.style.position = "relative";
- }
- var curElem = $( elem ),
- curOffset = curElem.offset(),
- curTop = parseInt( $.curCSS( elem, "top", true ), 10 ) || 0,
- curLeft = parseInt( $.curCSS( elem, "left", true ), 10) || 0,
- props = {
- top: (options.top - curOffset.top) + curTop,
- left: (options.left - curOffset.left) + curLeft
- };
-
- if ( 'using' in options ) {
- options.using.call( elem, props );
- } else {
- curElem.css( props );
- }
- };
-
- $.fn.offset = function( options ) {
- var elem = this[ 0 ];
- if ( !elem || !elem.ownerDocument ) { return null; }
- if ( options ) {
- return this.each(function() {
- $.offset.setOffset( this, options );
- });
- }
- return _offset.call( this );
- };
-}
-
}( jQuery ));