]> source.dussan.org Git - jquery-ui.git/commitdiff
Position: added check for undefined value of offset. Fixed #7458 - ui.position offset...
authortashekelahi <mail.ashek@gmail.com>
Fri, 10 Jun 2011 01:04:51 +0000 (21:04 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 10 Jun 2011 01:05:33 +0000 (21:05 -0400)
ui/jquery.ui.position.js

index 5ebff5d16404fa80704686c6fad6d59d5cc3163d..51e7561b396a46e90cbc955f206d65fe626e9232 100644 (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( " " ),