Skip to content

Commit 19dcac2

Browse files
ashekthegreatscottgonzalez
authored andcommitted
Position: added check for undefined value of offset. Fixed #7458 - ui.position offset property creates error when set to undefined
1 parent 7281f9f commit 19dcac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.position.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ if ( $.uiBackCompat !== false ) {
315315
(function( $ ) {
316316
var _position = $.fn.position;
317317
$.fn.position = function( options ) {
318-
if ( !options || !( "offset" in options ) ) {
318+
if ( !options || !options.offset ) {
319319
return _position.call( this, options );
320320
}
321321
var offset = options.offset.split( " " ),

0 commit comments

Comments
 (0)