diff options
author | Wonseop Kim <wonseop.kim@samsung.com> | 2020-05-05 17:49:27 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 10:49:27 +0200 |
commit | 3d62d5704989f17d3a20ae7521d52e9c8c60b4ee (patch) | |
tree | e65bc1fe0f602abb63c9de17f75ab85524a35f61 /src/dimensions.js | |
parent | 11066a9e6ac183dd710d1bc7aa74a3f809757136 (diff) | |
download | jquery-3d62d5704989f17d3a20ae7521d52e9c8c60b4ee.tar.gz jquery-3d62d5704989f17d3a20ae7521d52e9c8c60b4ee.zip |
Build: Correct code indentations based on jQuery Style Guide
1. Correct code indentations based on jQuery Style Guide
(contribute.jquery.org/style-guide/js/#spacing).
2. Add rules to "src/.eslintrc.json" to enable "enforcing consistent
indentation", with minimal changes to the current code.
Closes gh-4672
Diffstat (limited to 'src/dimensions.js')
-rw-r--r-- | src/dimensions.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dimensions.js b/src/dimensions.js index 6f1bf7d2f..42e445362 100644 --- a/src/dimensions.js +++ b/src/dimensions.js @@ -6,8 +6,11 @@ import "./css.js"; // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods jQuery.each( { Height: "height", Width: "width" }, function( name, type ) { - jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, - function( defaultExtra, funcName ) { + jQuery.each( { + padding: "inner" + name, + content: type, + "": "outer" + name + }, function( defaultExtra, funcName ) { // Margin is only for outerHeight, outerWidth jQuery.fn[ funcName ] = function( margin, value ) { |