📝 Shorten comment

This commit is contained in:
Kevin Sawicki
2014-01-29 13:50:34 -08:00
parent 4a54565f59
commit 84c5a25ef3

View File

@@ -429,10 +429,8 @@ class EditorView extends View
lastInput = e.originalEvent.data
@editor.insertText(lastInput)
# Return true if the last input was a space
# This prevents parent elements from scrolling
if lastInput is ' '
true
true # Prevents parent elements from scrolling when a space is typed
else
@hiddenInput.val(lastInput)
false