From 22cb79286a59d55eb7cfc9ba15a0144899e66dc9 Mon Sep 17 00:00:00 2001 From: Drew Mazurek Date: Tue, 9 Oct 2012 10:35:17 -0400 Subject: [PATCH] Core: updated $.curCSS() definition to respect jQuery 1.8 $.css() argument list changes. Fixed #8585 - sortable: "Sortable broken in absolutely positioned div with bottom 0" --- ui/jquery.ui.core.js | 5 ++++- ui/jquery.ui.position.js | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js index 3c9f90054e4..24bb7985f55 100644 --- a/ui/jquery.ui.core.js +++ b/ui/jquery.ui.core.js @@ -256,8 +256,11 @@ $(function() { }); // jQuery <1.4.3 uses curCSS, in 1.4.3 - 1.7.2 curCSS = css, 1.8+ only has css +// with different arguments. if ( !$.curCSS ) { - $.curCSS = $.css; + $.curCSS = function(elem, name, extra) { + return $.css(elem, name, false, extra); + } } diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index 2be8d1b4b7a..a8bfa6b0a07 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -258,8 +258,11 @@ if ( !$.offset.setOffset ) { } // jQuery <1.4.3 uses curCSS, in 1.4.3 - 1.7.2 curCSS = css, 1.8+ only has css +// with different arguments. if ( !$.curCSS ) { - $.curCSS = $.css; + $.curCSS = function(elem, name, extra) { + return $.css(elem, name, false, extra); + } } // fraction support test (older versions of jQuery don't support fractions)