aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.menu.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-02-12 09:01:06 -0500
committerScott González <scott.gonzalez@gmail.com>2012-02-12 09:01:06 -0500
commit609243b21d2530ecd5e8e19e99951decc8587285 (patch)
tree7a13a33fa14348553e9378f8349177dbc9334744 /ui/jquery.ui.menu.js
parent00b69db88365e41afbed29b9fed3592e0703b8ed (diff)
downloadjquery-ui-609243b21d2530ecd5e8e19e99951decc8587285.tar.gz
jquery-ui-609243b21d2530ecd5e8e19e99951decc8587285.zip
Use jQuery.css() instead of deprecated jQuery.curCSS().
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r--ui/jquery.ui.menu.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index 45be5edcf..42829c2a1 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -286,8 +286,8 @@ $.widget( "ui.menu", {
this.blur( event );
if ( this._hasScroll() ) {
- var borderTop = parseFloat( $.curCSS( this.activeMenu[0], "borderTopWidth", true ) ) || 0,
- paddingTop = parseFloat( $.curCSS( this.activeMenu[0], "paddingTop", true ) ) || 0,
+ var borderTop = parseFloat( $.css( this.activeMenu[0], "borderTopWidth" ) ) || 0,
+ paddingTop = parseFloat( $.css( this.activeMenu[0], "paddingTop" ) ) || 0,
offset = item.offset().top - this.activeMenu.offset().top - borderTop - paddingTop,
scroll = this.activeMenu.scrollTop(),
elementHeight = this.activeMenu.height(),