aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/adjustCSS.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2016-05-10 12:12:28 +0300
committerOleg Gaidarenko <markelog@gmail.com>2016-06-11 10:41:33 +0300
commit58c6ca9822afa42d3b40cca8edb0abe90a2bcb34 (patch)
treeeb8c4c93031b4f0d88ffe5d58af7d58337c7b116 /src/css/adjustCSS.js
parenta4474c9a0025095f82d734a9d7230eace2f08ef8 (diff)
downloadjquery-58c6ca9822afa42d3b40cca8edb0abe90a2bcb34.tar.gz
jquery-58c6ca9822afa42d3b40cca8edb0abe90a2bcb34.zip
Build: ESLint details
Use eslint pragmas, fix new errors, etc Closes gh-3148
Diffstat (limited to 'src/css/adjustCSS.js')
-rw-r--r--src/css/adjustCSS.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/css/adjustCSS.js b/src/css/adjustCSS.js
index f1d1f00ce..ded3a1666 100644
--- a/src/css/adjustCSS.js
+++ b/src/css/adjustCSS.js
@@ -10,8 +10,12 @@ function adjustCSS( elem, prop, valueParts, tween ) {
scale = 1,
maxIterations = 20,
currentValue = tween ?
- function() { return tween.cur(); } :
- function() { return jQuery.css( elem, prop, "" ); },
+ function() {
+ return tween.cur();
+ } :
+ function() {
+ return jQuery.css( elem, prop, "" );
+ },
initial = currentValue(),
unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),