Merge branch 'animate-nonblock' of http://github.com/csnover/jquery into csnover-animate-nonblock
This commit is contained in:
commit
b0dcc1746f
7 changed files with 339 additions and 163 deletions
|
@ -289,14 +289,9 @@ function getWH( elem, name, extra ) {
|
|||
|
||||
if ( jQuery.expr && jQuery.expr.filters ) {
|
||||
jQuery.expr.filters.hidden = function( elem ) {
|
||||
var width = elem.offsetWidth, height = elem.offsetHeight,
|
||||
skip = elem.nodeName.toLowerCase() === "tr";
|
||||
var width = elem.offsetWidth, height = elem.offsetHeight;
|
||||
|
||||
return width === 0 && height === 0 && !skip ?
|
||||
true :
|
||||
width > 0 && height > 0 && !skip ?
|
||||
false :
|
||||
(elem.style.display || jQuery.css( elem, "display" )) === "none";
|
||||
return (width === 0 && height === 0) || (!jQuery.support.reliableHiddenOffsets && (elem.style.display || jQuery.css( elem, "display" )) === "none");
|
||||
};
|
||||
|
||||
jQuery.expr.filters.visible = function( elem ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue