summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jschatz1@gmail.com>2016-05-26 22:32:12 -0400
committerPhil Hughes <me@iamphill.com>2016-06-17 11:52:22 +0100
commit118a42ce7f1d04720b57a6ab4c89939cfb640a7b (patch)
tree8cd6a75919979e017b37f480b3bfe034d6f53cc8
parent4ba2632c812a961970aae31f11bf8276d5e8fb39 (diff)
downloadgitlab-ce-118a42ce7f1d04720b57a6ab4c89939cfb640a7b.tar.gz
Remove console.log
-rw-r--r--app/assets/javascripts/lib/text_utility.js.coffee9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/assets/javascripts/lib/text_utility.js.coffee b/app/assets/javascripts/lib/text_utility.js.coffee
index 86488d735ef..933df1b0d50 100644
--- a/app/assets/javascripts/lib/text_utility.js.coffee
+++ b/app/assets/javascripts/lib/text_utility.js.coffee
@@ -32,8 +32,11 @@
selObj = window.getSelection()
selRange = selObj.getRangeAt(0)
text = $textArea.val()
- lineBreak = '\n' if textArea.selectionStart > 0
- console.log(textArea.selectionStart,lineBreak)
+ if textArea.selectionStart > 0
+ lineBreak = '\n'
+ else
+ lineBreak = ''
+
replaceWith = @replaceRange(
text,
textArea.selectionStart,
@@ -82,7 +85,6 @@
$thisTextarea.val(latestUndo.newVal)
gl.text.addListeners = () ->
- console.log('addListeners')
self = @
$('.js-md').on 'click', ->
$this = $(@)
@@ -119,7 +121,6 @@
gl.text._previousState,
$thisTextarea.val()
)
-
gl.text._previousState = $thisTextarea.val()
gl.text.removeListeners = () ->