aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/var
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-08-16 09:59:58 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-09-07 20:03:50 +0300
commit10fdad742a2a6aa9f0e00b3e04fc5264797c53c7 (patch)
tree6b6d7b1375ff88f4bebbfa0703f7b595eb485df9 /src/css/var
parent7aa46e0df8a673e6b00550bbbbed21eed50108b7 (diff)
downloadjquery-10fdad742a2a6aa9f0e00b3e04fc5264797c53c7.tar.gz
jquery-10fdad742a2a6aa9f0e00b3e04fc5264797c53c7.zip
Build: Update jscs and lint files
Fixes gh-2056
Diffstat (limited to 'src/css/var')
-rw-r--r--src/css/var/cssExpand.js4
-rw-r--r--src/css/var/getStyles.js4
-rw-r--r--src/css/var/isHidden.js6
-rw-r--r--src/css/var/rmargin.js6
-rw-r--r--src/css/var/rnumnonpx.js4
-rw-r--r--src/css/var/swap.js4
6 files changed, 15 insertions, 13 deletions
diff --git a/src/css/var/cssExpand.js b/src/css/var/cssExpand.js
index 91e90a88a..9f8194dc8 100644
--- a/src/css/var/cssExpand.js
+++ b/src/css/var/cssExpand.js
@@ -1,3 +1,3 @@
-define(function() {
+define( function() {
return [ "Top", "Right", "Bottom", "Left" ];
-});
+} );
diff --git a/src/css/var/getStyles.js b/src/css/var/getStyles.js
index 31dfc298e..1fa915d58 100644
--- a/src/css/var/getStyles.js
+++ b/src/css/var/getStyles.js
@@ -1,4 +1,4 @@
-define(function() {
+define( function() {
return function( elem ) {
// Support: IE<=11+, Firefox<=30+ (#15098, #14150)
@@ -12,4 +12,4 @@ define(function() {
return view.getComputedStyle( elem );
};
-});
+} );
diff --git a/src/css/var/isHidden.js b/src/css/var/isHidden.js
index c29f527ae..7997efff1 100644
--- a/src/css/var/isHidden.js
+++ b/src/css/var/isHidden.js
@@ -1,14 +1,16 @@
-define([
+define( [
"../../core",
"../../selector"
+
// css is assumed
], function( jQuery ) {
return function( elem, el ) {
+
// 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 );
};
-});
+} );
diff --git a/src/css/var/rmargin.js b/src/css/var/rmargin.js
index da0438db6..9be221243 100644
--- a/src/css/var/rmargin.js
+++ b/src/css/var/rmargin.js
@@ -1,3 +1,3 @@
-define(function() {
- return (/^margin/);
-});
+define( function() {
+ return ( /^margin/ );
+} );
diff --git a/src/css/var/rnumnonpx.js b/src/css/var/rnumnonpx.js
index c93be2850..ed13f0b98 100644
--- a/src/css/var/rnumnonpx.js
+++ b/src/css/var/rnumnonpx.js
@@ -1,5 +1,5 @@
-define([
+define( [
"../../var/pnum"
], function( pnum ) {
return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
-});
+} );
diff --git a/src/css/var/swap.js b/src/css/var/swap.js
index dbf639729..b6d3b679f 100644
--- a/src/css/var/swap.js
+++ b/src/css/var/swap.js
@@ -1,4 +1,4 @@
-define(function() {
+define( function() {
// A method for quickly swapping in/out CSS properties to get correct calculations.
return function( elem, options, callback, args ) {
@@ -21,4 +21,4 @@ return function( elem, options, callback, args ) {
return ret;
};
-});
+} );