summaryrefslogtreecommitdiff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorBryce Johnson <bryce@gitlab.com>2016-10-12 18:47:31 +0200
committerBryce Johnson <bryce@gitlab.com>2016-10-15 08:28:55 +0200
commit716406bc71fc3866588ccca8c132060d4f33e53e (patch)
tree25b9e568acaad653a4ce232ec9cfbece5cafd123 /app/assets/javascripts
parenteb866dfe05c82b2a45da69d924bcbe15b151a054 (diff)
downloadgitlab-ce-716406bc71fc3866588ccca8c132060d4f33e53e.tar.gz
Back off the array spreading, bc poltergeist freaks out.
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/dispatcher.js.es67
1 files changed, 3 insertions, 4 deletions
diff --git a/app/assets/javascripts/dispatcher.js.es6 b/app/assets/javascripts/dispatcher.js.es6
index abc077a404e..f3957ed374b 100644
--- a/app/assets/javascripts/dispatcher.js.es6
+++ b/app/assets/javascripts/dispatcher.js.es6
@@ -296,10 +296,9 @@
};
Dispatcher.prototype.initFieldErrors = function() {
- var flaggedForms = document.querySelectorAll('.show-gl-field-errors');
- return [...flaggedForms].forEach(function(form) {
- new gl.GlFieldErrors(form);
- });
+ $('.show-gl-field-errors').each((i, form) => {
+ new gl.GlFieldErrors(form);
+ });
};
return Dispatcher;