diff options
author | Bryce Johnson <bryce@gitlab.com> | 2016-10-12 18:47:31 +0200 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2016-10-15 08:28:55 +0200 |
commit | 716406bc71fc3866588ccca8c132060d4f33e53e (patch) | |
tree | 25b9e568acaad653a4ce232ec9cfbece5cafd123 /app/assets/javascripts | |
parent | eb866dfe05c82b2a45da69d924bcbe15b151a054 (diff) | |
download | gitlab-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.es6 | 7 |
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; |