Skip to content

Commit

Permalink
Position: added check for undefined value of offset. Fixed #7458 - ui…
Browse files Browse the repository at this point in the history
….position offset property creates error when set to undefined
  • Loading branch information
ashekthegreat authored and scottgonzalez committed Jun 10, 2011
1 parent 7281f9f commit 19dcac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.position.js
Original file line number Diff line number Diff line change
Expand Up @@ -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( " " ),
Expand Down

0 comments on commit 19dcac2

Please sign in to comment.