]> source.dussan.org Git - jquery.git/commitdiff
Cleanup spacing in support.js. Fixes #10601
authorRick Waldron <waldron.rick@gmail.com>
Thu, 27 Oct 2011 19:34:42 +0000 (15:34 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Thu, 27 Oct 2011 19:34:42 +0000 (15:34 -0400)
src/support.js

index 7ea85984f69939d7b7480907f005b3d0e8373e23..20cf2b526eb37c345a08d70bda0a77fc27cd9202 100644 (file)
@@ -279,22 +279,22 @@ jQuery.support = (function() {
                td = outer.nextSibling.firstChild.firstChild;
 
                supports = {
-                       doesNotAddBorder: (inner.offsetTop !== 5),
-                       doesAddBorderForTableAndCells: (td.offsetTop === 5)
+                       doesNotAddBorder: ( inner.offsetTop !== 5 ),
+                       doesAddBorderForTableAndCells: ( td.offsetTop === 5 )
                };
 
                inner.style.position = "fixed";
                inner.style.top = "20px";
 
                // safari subtracts parent border width here which is 5px
-               supports.supportsFixedPosition = (inner.offsetTop === 20 || inner.offsetTop === 15);
+               supports.supportsFixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );
                inner.style.position = inner.style.top = "";
 
                outer.style.overflow = "hidden";
                outer.style.position = "relative";
 
-               supports.subtractsBorderForOverflowNotVisible = (inner.offsetTop === -5);
-               supports.doesNotIncludeMarginInBodyOffset = (body.offsetTop !== bodyMarginTop);
+               supports.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 );
+               supports.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== bodyMarginTop );
 
                return supports;