From: Scott González Date: Tue, 14 Aug 2012 21:00:07 +0000 (-0400) Subject: Position: Create curCSS alias if it doesn't exist. Fixes #8501 - 1.8 Compat; Position... X-Git-Tag: 1.8.23~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=04df2b95421bc6c440b4205d88c6a56e84fdee30;p=jquery-ui.git Position: Create curCSS alias if it doesn't exist. Fixes #8501 - 1.8 Compat; Position still uses $.curCSS. --- diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index 25d9ce8a4..2be8d1b4b 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -257,6 +257,11 @@ if ( !$.offset.setOffset ) { }; } +// jQuery <1.4.3 uses curCSS, in 1.4.3 - 1.7.2 curCSS = css, 1.8+ only has css +if ( !$.curCSS ) { + $.curCSS = $.css; +} + // fraction support test (older versions of jQuery don't support fractions) (function () { var body = document.getElementsByTagName( "body" )[ 0 ],