This commit is contained in:
Scott Erickson 2014-03-24 09:28:06 -07:00
commit 6de62154bd
2 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ module.exports = class WizardSettingsModal extends View
closesOnClickOutside: false
constructor: (options) ->
@onNameChange = _.debounce(@checkNameExists, 200)
@onNameChange = _.debounce(@checkNameExists, 500)
super options
events:

View file

@ -103,8 +103,8 @@ module.exports = class SpellToolbarView extends View
updateScroll: ->
return unless statementStart = @callState?.statements?[@statementIndex]?.range[0]
text = @ace.getValue()
currentLine = text.substr(0, statementStart).split('\n').length - 1
text = @ace.getValue() # code in editor
currentLine = statementStart.row
@ace.scrollToLine currentLine, true, true
setCallState: (callState, statementIndex, @callIndex, @metrics) ->