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:
tashekelahi
2011-06-09 21:04:51 -04:00
committed by Scott González
parent 7281f9f229
commit 19dcac2129

View File

@@ -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( " " ),