summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/snippet
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-08-18 10:10:27 -0600
committerSean McGivern <sean@gitlab.com>2016-08-18 21:48:11 +0100
commit8db088ccc726996bdcda74373d9ce855dedf5bd5 (patch)
treea712322a254a7032fefcf215dcb0306a339a422c /app/assets/javascripts/snippet
parent0baaf490e289adb36ef7145a57f75cdab05eb01c (diff)
downloadgitlab-ce-8db088ccc726996bdcda74373d9ce855dedf5bd5.tar.gz
Don't use global variables.ace-ventura
Diffstat (limited to 'app/assets/javascripts/snippet')
-rw-r--r--app/assets/javascripts/snippet/snippet_bundle.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/snippet/snippet_bundle.js b/app/assets/javascripts/snippet/snippet_bundle.js
index 093f266059d..855e97eb301 100644
--- a/app/assets/javascripts/snippet/snippet_bundle.js
+++ b/app/assets/javascripts/snippet/snippet_bundle.js
@@ -2,7 +2,7 @@
(function() {
$(function() {
- editor = ace.edit("editor")
+ var editor = ace.edit("editor")
$(".snippet-form-holder form").on('submit', function() {
$(".snippet-file-content").val(editor.getValue());