From: tashekelahi Date: Fri, 10 Jun 2011 01:04:51 +0000 (-0400) Subject: Position: added check for undefined value of offset. Fixed #7458 - ui.position offset... X-Git-Tag: 1.9m6~98^2~44 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=19dcac2129a2b39a24989835c1c732fa630bdefd;p=jquery-ui.git Position: added check for undefined value of offset. Fixed #7458 - ui.position offset property creates error when set to undefined --- diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index 5ebff5d16..51e7561b3 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -315,7 +315,7 @@ if ( $.uiBackCompat !== false ) { (function( $ ) { var _position = $.fn.position; $.fn.position = function( options ) { - if ( !options || !( "offset" in options ) ) { + if ( !options || !options.offset ) { return _position.call( this, options ); } var offset = options.offset.split( " " ),