Permalink
Browse files

Re-ordering the args to setOffset() in case people were relying upon …

…the old order (doubtful).
  • Loading branch information...
1 parent 4fa0036 commit 0e5370b89c0dfe56bf2f02fdd34fd820ecd48254 @jeresig jeresig committed Jan 7, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/offset.js
View
@@ -8,7 +8,7 @@ if ( "getBoundingClientRect" in document.documentElement ) {
if ( options ) {
return this.each(function( i ) {
- jQuery.offset.setOffset( this, i, options );
+ jQuery.offset.setOffset( this, options, i );
});
}
@@ -34,7 +34,7 @@ if ( "getBoundingClientRect" in document.documentElement ) {
if ( options ) {
return this.each(function( i ) {
- jQuery.offset.setOffset( this, i, options );
+ jQuery.offset.setOffset( this, options, i );
});
}
@@ -137,7 +137,7 @@ jQuery.offset = {
return { top: top, left: left };
},
- setOffset: function( elem, i, options ) {
+ setOffset: function( elem, options, i ) {
// set position first, in-case top/left are set even on static elem
if ( /static/.test( jQuery.curCSS( elem, "position" ) ) ) {
elem.style.position = "relative";

0 comments on commit 0e5370b

Please sign in to comment.