diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-10-10 14:06:42 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-10-10 14:06:42 +0300 |
commit | b5029214639593af5b867e9c8f06dd52767b7362 (patch) | |
tree | 223541e93dfdfe6aec355e7064949e58502182e4 /app/assets/javascripts/build_variables.js | |
parent | 377c10b49391b02dee97b659575c53a5c5d2ffbe (diff) |
Remove Build code from global namespace
Diffstat (limited to 'app/assets/javascripts/build_variables.js')
-rw-r--r-- | app/assets/javascripts/build_variables.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/app/assets/javascripts/build_variables.js b/app/assets/javascripts/build_variables.js index c955a9ac2ea..35edf3e0017 100644 --- a/app/assets/javascripts/build_variables.js +++ b/app/assets/javascripts/build_variables.js @@ -1,8 +1,10 @@ -/* eslint-disable func-names, prefer-arrow-callback, space-before-function-paren */ +/* eslint-disable func-names*/ -$(function() { - $('.reveal-variables').off('click').on('click', function() { - $('.js-build-variables').toggle(); - $(this).hide(); - }); -}); +export default function handleRevealVariables() { + $('.js-reveal-variables') + .off('click') + .on('click', function () { + $('.js-build-variables').toggle(); + $(this).hide(); + }); +} |