]> source.dussan.org Git - jquery-ui.git/commitdiff
Scroll Parent: Fix line length issues
authorAlexander Schmitz <arschmitz@gmail.com>
Thu, 31 Mar 2016 04:06:36 +0000 (00:06 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 13 Apr 2016 15:31:59 +0000 (11:31 -0400)
Ref gh-1690

ui/scroll-parent.js

index 478b86ae367666b35803b9c9fcde80098b2ae5eb..e646919888484bb9275a389234fcfda2b785655d 100644 (file)
@@ -33,10 +33,13 @@ 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" ) );
+                       return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) +
+                               parent.css( "overflow-x" ) );
                } ).eq( 0 );
 
-       return position === "fixed" || !scrollParent.length ? $( this[ 0 ].ownerDocument || document ) : scrollParent;
+       return position === "fixed" || !scrollParent.length ?
+               $( this[ 0 ].ownerDocument || document ) :
+               scrollParent;
 };
 
 } ) );