mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Position: added check for undefined value of offset. Fixed #7458 - ui.position offset property creates error when set to undefined
This commit is contained in:
committed by
Scott González
parent
7281f9f229
commit
19dcac2129
2
ui/jquery.ui.position.js
vendored
2
ui/jquery.ui.position.js
vendored
@@ -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( " " ),
|
||||
|
||||
Reference in New Issue
Block a user