aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2016-07-15 21:42:25 +0400
committerGitHub <noreply@github.com>2016-07-15 21:42:25 +0400
commite4fd41f8fa4190fbbb6cb98cf7ace64f6e00685d (patch)
treec9957f8e6da0b814dfd11a5d1d61d969f7be4efd /src/css.js
parent96966c022079e3956018717136367fbf4ed548a2 (diff)
downloadjquery-e4fd41f8fa4190fbbb6cb98cf7ace64f6e00685d.tar.gz
jquery-e4fd41f8fa4190fbbb6cb98cf7ace64f6e00685d.zip
Build: Update eslint config and fix associated errors
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/css.js b/src/css.js
index 795ca2796..5e4451193 100644
--- a/src/css.js
+++ b/src/css.js
@@ -70,15 +70,17 @@ function setPositiveNumber( elem, value, subtract ) {
}
function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
- var i = extra === ( isBorderBox ? "border" : "content" ) ?
-
- // If we already have the right measurement, avoid augmentation
- 4 :
+ var i,
+ val = 0;
- // Otherwise initialize for horizontal or vertical properties
- name === "width" ? 1 : 0,
+ // If we already have the right measurement, avoid augmentation
+ if ( extra === ( isBorderBox ? "border" : "content" ) ) {
+ i = 4;
- val = 0;
+ // Otherwise initialize for horizontal or vertical properties
+ } else {
+ i = name === "width" ? 1 : 0;
+ }
for ( ; i < 4; i += 2 ) {