Merge branch 'animate-nonblock' of http://github.com/csnover/jquery into csnover-animate-nonblock

This commit is contained in:
John Resig 2010-10-09 16:21:02 -04:00
commit b0dcc1746f
7 changed files with 339 additions and 163 deletions

View file

@ -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 ) {