diff options
author | tashekelahi <mail.ashek@gmail.com> | 2011-06-09 21:04:51 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-06-09 21:05:33 -0400 |
commit | 19dcac2129a2b39a24989835c1c732fa630bdefd (patch) | |
tree | eb784cc2765126a1c990f2e4badb26b86e285549 /ui | |
parent | 7281f9f22904d97b3d244a1c8ed2450e6506d538 (diff) | |
download | jquery-ui-19dcac2129a2b39a24989835c1c732fa630bdefd.tar.gz jquery-ui-19dcac2129a2b39a24989835c1c732fa630bdefd.zip |
Position: added check for undefined value of offset. Fixed #7458 - ui.position offset property creates error when set to undefined
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.position.js | 2 |
1 files changed, 1 insertions, 1 deletions
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( " " ), |