Commit 118a42ce authored by Jacob Schatz's avatar Jacob Schatz Committed by Phil Hughes

Remove console.log

parent 4ba2632c
...@@ -32,8 +32,11 @@ ...@@ -32,8 +32,11 @@
selObj = window.getSelection() selObj = window.getSelection()
selRange = selObj.getRangeAt(0) selRange = selObj.getRangeAt(0)
text = $textArea.val() text = $textArea.val()
lineBreak = '\n' if textArea.selectionStart > 0 if textArea.selectionStart > 0
console.log(textArea.selectionStart,lineBreak) lineBreak = '\n'
else
lineBreak = ''
replaceWith = @replaceRange( replaceWith = @replaceRange(
text, text,
textArea.selectionStart, textArea.selectionStart,
...@@ -82,7 +85,6 @@ ...@@ -82,7 +85,6 @@
$thisTextarea.val(latestUndo.newVal) $thisTextarea.val(latestUndo.newVal)
gl.text.addListeners = () -> gl.text.addListeners = () ->
console.log('addListeners')
self = @ self = @
$('.js-md').on 'click', -> $('.js-md').on 'click', ->
$this = $(@) $this = $(@)
...@@ -119,7 +121,6 @@ ...@@ -119,7 +121,6 @@
gl.text._previousState, gl.text._previousState,
$thisTextarea.val() $thisTextarea.val()
) )
gl.text._previousState = $thisTextarea.val() gl.text._previousState = $thisTextarea.val()
gl.text.removeListeners = () -> gl.text.removeListeners = () ->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment