aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-01-07 14:08:32 -0500
committerjeresig <jeresig@gmail.com>2010-01-07 14:08:32 -0500
commit0e5370b89c0dfe56bf2f02fdd34fd820ecd48254 (patch)
treed906fd45f047f5a60ec55a9ac0340de7e6c12698 /src/offset.js
parent4fa00369f00b8ee708c8962135b7aa345e3d30d0 (diff)
downloadjquery-0e5370b89c0dfe56bf2f02fdd34fd820ecd48254.tar.gz
jquery-0e5370b89c0dfe56bf2f02fdd34fd820ecd48254.zip
Re-ordering the args to setOffset() in case people were relying upon the old order (doubtful).
Diffstat (limited to 'src/offset.js')
-rw-r--r--src/offset.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/offset.js b/src/offset.js
index 7dd71343e..c3183743b 100644
--- a/src/offset.js
+++ b/src/offset.js
@@ -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";