aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.position.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-04-02 15:55:50 -0400
committerScott González <scott.gonzalez@gmail.com>2012-04-02 15:55:50 -0400
commitccbfd45924d6ddebc7b2bb575a9c8997a3d9ec03 (patch)
treec826598d95c1b945677b9d375ff5ee80dab120eb /ui/jquery.ui.position.js
parent3876c874e3f311d263aef9f99ed2780afa1d41d7 (diff)
downloadjquery-ui-ccbfd45924d6ddebc7b2bb575a9c8997a3d9ec03.tar.gz
jquery-ui-ccbfd45924d6ddebc7b2bb575a9c8997a3d9ec03.zip
A few lint fixes.
Diffstat (limited to 'ui/jquery.ui.position.js')
-rw-r--r--ui/jquery.ui.position.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js
index c88f75f7b..7fe31626d 100644
--- a/ui/jquery.ui.position.js
+++ b/ui/jquery.ui.position.js
@@ -152,13 +152,13 @@ $.fn.position = function( options ) {
var elem = $( this ),
elemWidth = elem.outerWidth(),
elemHeight = elem.outerHeight(),
- marginLeft = parseInt( $.css( this, "marginLeft" ) ) || 0,
- marginTop = parseInt( $.css( this, "marginTop" ) ) || 0,
+ marginLeft = parseInt( $.css( this, "marginLeft" ), 10 ) || 0,
+ marginTop = parseInt( $.css( this, "marginTop" ), 10 ) || 0,
scrollInfo = $.position.getScrollInfo( within ),
collisionWidth = elemWidth + marginLeft +
- ( parseInt( $.css( this, "marginRight" ) ) || 0 ) + scrollInfo.width,
+ ( parseInt( $.css( this, "marginRight" ), 10 ) || 0 ) + scrollInfo.width,
collisionHeight = elemHeight + marginTop +
- ( parseInt( $.css( this, "marginBottom" ) ) || 0 ) + scrollInfo.height,
+ ( parseInt( $.css( this, "marginBottom" ), 10 ) || 0 ) + scrollInfo.height,
position = $.extend( {}, basePosition ),
myOffset = [
parseInt( offsets.my[ 0 ], 10 ) *
@@ -483,7 +483,7 @@ if ( $.uiBackCompat !== false ) {
at: at[ 0 ] + offset[ 0 ] + " " + at[ 1 ] + offset[ 1 ],
offset: undefined
} ) );
- }
+ };
}( jQuery ) );
}