Skip to content
Permalink
Browse files

Position: added check for undefined value of offset. Fixed #7458 - ui…

….position offset property creates error when set to undefined
  • Loading branch information
ashekthegreat authored and scottgonzalez committed Jun 10, 2011
1 parent 7281f9f commit 19dcac2129a2b39a24989835c1c732fa630bdefd
Showing with 1 addition and 1 deletion.
  1. +1 −1 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( " " ),

0 comments on commit 19dcac2

Please sign in to comment.
You can’t perform that action at this time.