Update signature of calls to TextBuffer::transact

This commit is contained in:
Max Brunsfeld
2014-11-05 15:03:02 -08:00
parent e7eef89fa5
commit 4077e791c9
3 changed files with 5 additions and 7 deletions

View File

@@ -458,9 +458,8 @@ TextEditorComponent = React.createClass
selectedLength = inputNode.selectionEnd - inputNode.selectionStart
editor.selectLeft() if selectedLength is 1
insertedRange = editor.transact(->
insertedRange = editor.transact @constructor.groupingInterval, ->
editor.insertText(event.data)
, @constructor.groupingInterval)
inputNode.value = event.data if insertedRange
onVerticalScroll: (scrollTop) ->