aboutsummaryrefslogtreecommitdiffstats
path: root/src/css
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2014-07-17 10:25:59 -0700
committerTimmy Willison <timmywillisn@gmail.com>2014-07-17 10:25:59 -0700
commitc869a1ef8a031342e817a2c063179a787ff57239 (patch)
treebf70e1683cc53d5d3793a8deb0aaafe2bd684513 /src/css
parent8e3a0ceafa2c7c78902d0eab07d21b793deb5366 (diff)
downloadjquery-c869a1ef8a031342e817a2c063179a787ff57239.tar.gz
jquery-c869a1ef8a031342e817a2c063179a787ff57239.zip
Build: update grunt-jscs-checker and pass with the new rules
Diffstat (limited to 'src/css')
-rw-r--r--src/css/curCSS.js6
-rw-r--r--src/css/defaultDisplay.js15
-rw-r--r--src/css/var/isHidden.js3
3 files changed, 16 insertions, 8 deletions
diff --git a/src/css/curCSS.js b/src/css/curCSS.js
index 90e508cb8..420d19fa9 100644
--- a/src/css/curCSS.js
+++ b/src/css/curCSS.js
@@ -26,8 +26,10 @@ function curCSS( elem, name, computed ) {
// Support: iOS < 6
// A tribute to the "awesome hack by Dean Edwards"
- // iOS < 6 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
- // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
+ // iOS < 6 (at least) returns percentage for a larger set of values,
+ // but width seems to be reliably pixels
+ // this is against the CSSOM draft spec:
+ // http://dev.w3.org/csswg/cssom/#resolved-values
if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {
// Remember the original values
diff --git a/src/css/defaultDisplay.js b/src/css/defaultDisplay.js
index 046ae91b9..0090ca644 100644
--- a/src/css/defaultDisplay.js
+++ b/src/css/defaultDisplay.js
@@ -17,11 +17,15 @@ function actualDisplay( name, doc ) {
elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
// getDefaultComputedStyle might be reliably used only on attached element
- display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ?
+ display = window.getDefaultComputedStyle &&
+ ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ?
- // Use of this method is a temporary fix (more like optimization) until something better comes along,
- // since it was removed from specification and supported only in FF
- style.display : jQuery.css( elem[ 0 ], "display" );
+ // Use of this method is a temporary fix (more like optimization)
+ // until something better comes along,
+ // since it was removed from specification and supported only in FF
+ style.display :
+
+ jQuery.css( elem[ 0 ], "display" );
// We don't have any data stored on the element,
// so use "detach" method as fast way to get rid of the element
@@ -45,7 +49,8 @@ function defaultDisplay( nodeName ) {
if ( display === "none" || !display ) {
// Use the already-created iframe if possible
- iframe = (iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" )).appendTo( doc.documentElement );
+ iframe = (iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" ))
+ .appendTo( doc.documentElement );
// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
doc = iframe[ 0 ].contentDocument;
diff --git a/src/css/var/isHidden.js b/src/css/var/isHidden.js
index 15ab81a97..c29f527ae 100644
--- a/src/css/var/isHidden.js
+++ b/src/css/var/isHidden.js
@@ -8,6 +8,7 @@ define([
// isHidden might be called from jQuery#filter function;
// in that case, element will be second argument
elem = el || elem;
- return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
+ return jQuery.css( elem, "display" ) === "none" ||
+ !jQuery.contains( elem.ownerDocument, elem );
};
});