aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortashekelahi <mail.ashek@gmail.com>2011-06-09 21:04:51 -0400
committerScott González <scott.gonzalez@gmail.com>2011-06-09 21:05:33 -0400
commit19dcac2129a2b39a24989835c1c732fa630bdefd (patch)
treeeb784cc2765126a1c990f2e4badb26b86e285549
parent7281f9f22904d97b3d244a1c8ed2450e6506d538 (diff)
downloadjquery-ui-19dcac2129a2b39a24989835c1c732fa630bdefd.tar.gz
jquery-ui-19dcac2129a2b39a24989835c1c732fa630bdefd.zip
Position: added check for undefined value of offset. Fixed #7458 - ui.position offset property creates error when set to undefined
-rw-r--r--ui/jquery.ui.position.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js
index 5ebff5d16..51e7561b3 100644
--- a/ui/jquery.ui.position.js
+++ b/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( " " ),