Skip to content
Permalink
Browse files

Position: Patch .offset( fn ) setter for jQuery 1.3.2. Fixes #8254 - …

…Position module throws uncaught exception on IE8 with jQuery 1.3.2.
  • Loading branch information
scottgonzalez committed May 8, 2012
1 parent b676d59 commit 3cf2b7c45facd0e01edbaeec74082382f1da1499
Showing with 6 additions and 1 deletion.
  1. +6 −1 ui/jquery.ui.position.js
@@ -243,7 +243,12 @@ if ( !$.offset.setOffset ) {
$.fn.offset = function( options ) {
var elem = this[ 0 ];
if ( !elem || !elem.ownerDocument ) { return null; }
if ( options ) {
if ( options ) {
if ( $.isFunction( options ) ) {
return this.each(function( i ) {
$( this ).offset( options.call( this, i, $( this ).offset() ) );
});
}
return this.each(function() {
$.offset.setOffset( this, options );
});

0 comments on commit 3cf2b7c

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