mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Batched CSS query
Slight performance optimization.
This commit is contained in:
parent
f67f9293ae
commit
65420a1371
@ -33,8 +33,8 @@ return $.fn.scrollParent = function( includeHidden ) {
|
||||
if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
|
||||
return false;
|
||||
}
|
||||
return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) +
|
||||
parent.css( "overflow-x" ) );
|
||||
var overflowState = parent.css(["overflow", "overflowX", "overflowY"]);
|
||||
return (overflowRegex).test( overflowState.overflow + overflowState.overflowX + overflowState.overflowY );
|
||||
} ).eq( 0 );
|
||||
|
||||
return position === "fixed" || !scrollParent.length ?
|
||||
|
Loading…
Reference in New Issue
Block a user