diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-08-14 17:00:07 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-08-14 17:00:07 -0400 |
commit | 04df2b95421bc6c440b4205d88c6a56e84fdee30 (patch) | |
tree | 8000817d9d7f906e13bfa0283649b415201b3380 | |
parent | e4a1c98092665314759852c4bc86055f2b56f46e (diff) | |
download | jquery-ui-04df2b95421bc6c440b4205d88c6a56e84fdee30.tar.gz jquery-ui-04df2b95421bc6c440b4205d88c6a56e84fdee30.zip |
Position: Create curCSS alias if it doesn't exist. Fixes #8501 - 1.8 Compat; Position still uses $.curCSS.
-rw-r--r-- | ui/jquery.ui.position.js | 5 |
1 files changed, 5 insertions, 0 deletions
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 ], |