summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/project_variables.js.es6
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-11-24 02:24:52 -0800
committerStan Hu <stanhu@gmail.com>2016-11-24 02:24:52 -0800
commit1fa55069745163e70f01349f71798e2a214ae28e (patch)
tree54c2e7b9bc041ac04f45ec374170f2467d974e28 /app/assets/javascripts/project_variables.js.es6
parenta43f71ec144c1a8ab9f9829414699cec062a8b92 (diff)
downloadgitlab-ce-1fa55069745163e70f01349f71798e2a214ae28e.tar.gz
Add spec for hiding variables and remove the need for ES6 Symbol
Diffstat (limited to 'app/assets/javascripts/project_variables.js.es6')
-rw-r--r--app/assets/javascripts/project_variables.js.es66
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/project_variables.js.es6 b/app/assets/javascripts/project_variables.js.es6
index 51ee55946e4..6c905f58c85 100644
--- a/app/assets/javascripts/project_variables.js.es6
+++ b/app/assets/javascripts/project_variables.js.es6
@@ -23,9 +23,9 @@
$btn.attr('data-status', newStatus);
- $variables = $('.variable-value');
+ let $variables = $('.variable-value');
- for (let variable of $variables) {
+ $variables.each(function (_, variable) {
let $variable = $(variable);
let newText = HIDDEN_VALUE_TEXT;
@@ -34,7 +34,7 @@
}
$variable.text(newText);
- }
+ });
$btn.text(newAction);
}