git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4fa0036
)
Re-ordering the args to setOffset() in case people were relying upon the old order...
author
jeresig
<jeresig@gmail.com>
Thu, 7 Jan 2010 19:08:32 +0000
(14:08 -0500)
committer
jeresig
<jeresig@gmail.com>
Thu, 7 Jan 2010 19:08:32 +0000
(14:08 -0500)
src/offset.js
patch
|
blob
|
history
diff --git
a/src/offset.js
b/src/offset.js
index
7dd7134
..
c318374
100644
(file)
--- a/
src/offset.js
+++ b/
src/offset.js
@@
-8,7
+8,7
@@
if ( "getBoundingClientRect" in document.documentElement ) {
if ( options ) {
return this.each(function( i ) {
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 ) {
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 };
},
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";
// set position first, in-case top/left are set even on static elem
if ( /static/.test( jQuery.curCSS( elem, "position" ) ) ) {
elem.style.position = "relative";