Skip to content

Commit 04df2b9

Browse files
committed
Position: Create curCSS alias if it doesn't exist. Fixes #8501 - 1.8 Compat; Position still uses $.curCSS.
1 parent e4a1c98 commit 04df2b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui/jquery.ui.position.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ if ( !$.offset.setOffset ) {
257257
};
258258
}
259259

260+
// jQuery <1.4.3 uses curCSS, in 1.4.3 - 1.7.2 curCSS = css, 1.8+ only has css
261+
if ( !$.curCSS ) {
262+
$.curCSS = $.css;
263+
}
264+
260265
// fraction support test (older versions of jQuery don't support fractions)
261266
(function () {
262267
var body = document.getElementsByTagName( "body" )[ 0 ],

0 commit comments

Comments
 (0)