diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-08-18 10:10:27 -0600 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-08-18 21:48:11 +0100 |
commit | 8db088ccc726996bdcda74373d9ce855dedf5bd5 (patch) | |
tree | a712322a254a7032fefcf215dcb0306a339a422c /app/assets/javascripts/blob_edit | |
parent | 0baaf490e289adb36ef7145a57f75cdab05eb01c (diff) | |
download | gitlab-ce-8db088ccc726996bdcda74373d9ce855dedf5bd5.tar.gz |
Don't use global variables.ace-ventura
Diffstat (limited to 'app/assets/javascripts/blob_edit')
-rw-r--r-- | app/assets/javascripts/blob_edit/blob_edit_bundle.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/blob_edit/blob_edit_bundle.js b/app/assets/javascripts/blob_edit/blob_edit_bundle.js index 99034a7678f..2afef43f3d6 100644 --- a/app/assets/javascripts/blob_edit/blob_edit_bundle.js +++ b/app/assets/javascripts/blob_edit/blob_edit_bundle.js @@ -2,10 +2,10 @@ (function() { $(function() { - url = $(".js-edit-blob-form").data("relative-url-root"); + var url = $(".js-edit-blob-form").data("relative-url-root"); url += $(".js-edit-blob-form").data("assets-prefix"); - blob = new EditBlob(url, $('.js-edit-blob-form').data('blob-language')); + var blob = new EditBlob(url, $('.js-edit-blob-form').data('blob-language')); new NewCommitForm($('.js-edit-blob-form')); }); |