Merge branch 'master' of github.com:jquery/jquery
This commit is contained in:
commit
8ea634fd07
4 changed files with 40 additions and 15 deletions
4
src/effects.js
vendored
4
src/effects.js
vendored
|
@ -13,7 +13,7 @@ var elemdisplay = {},
|
|||
|
||||
jQuery.fn.extend({
|
||||
show: function( speed, callback ) {
|
||||
if ( speed != null ) {
|
||||
if ( speed || speed === 0) {
|
||||
return this.animate( genFx("show", 3), speed, callback);
|
||||
|
||||
} else {
|
||||
|
@ -57,7 +57,7 @@ jQuery.fn.extend({
|
|||
},
|
||||
|
||||
hide: function( speed, callback ) {
|
||||
if ( speed != null ) {
|
||||
if ( speed || speed === 0 ) {
|
||||
return this.animate( genFx("hide", 3), speed, callback);
|
||||
|
||||
} else {
|
||||
|
|
|
@ -2,16 +2,16 @@ if ( "getBoundingClientRect" in document.documentElement ) {
|
|||
jQuery.fn.offset = function( options ) {
|
||||
var elem = this[0];
|
||||
|
||||
if ( !elem || !elem.ownerDocument ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ( options ) {
|
||||
return this.each(function( i ) {
|
||||
jQuery.offset.setOffset( this, options, i );
|
||||
});
|
||||
}
|
||||
|
||||
if ( !elem || !elem.ownerDocument ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ( elem === elem.ownerDocument.body ) {
|
||||
return jQuery.offset.bodyOffset( elem );
|
||||
}
|
||||
|
@ -28,16 +28,16 @@ if ( "getBoundingClientRect" in document.documentElement ) {
|
|||
jQuery.fn.offset = function( options ) {
|
||||
var elem = this[0];
|
||||
|
||||
if ( !elem || !elem.ownerDocument ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ( options ) {
|
||||
return this.each(function( i ) {
|
||||
jQuery.offset.setOffset( this, options, i );
|
||||
});
|
||||
}
|
||||
|
||||
if ( !elem || !elem.ownerDocument ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ( elem === elem.ownerDocument.body ) {
|
||||
return jQuery.offset.bodyOffset( elem );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue