mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-01 03:16:56 -05:00
Merge branch 'master' of https://github.com/codecombat/codecombat
This commit is contained in:
commit
6de62154bd
2 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ module.exports = class WizardSettingsModal extends View
|
||||||
closesOnClickOutside: false
|
closesOnClickOutside: false
|
||||||
|
|
||||||
constructor: (options) ->
|
constructor: (options) ->
|
||||||
@onNameChange = _.debounce(@checkNameExists, 200)
|
@onNameChange = _.debounce(@checkNameExists, 500)
|
||||||
super options
|
super options
|
||||||
|
|
||||||
events:
|
events:
|
||||||
|
|
|
@ -103,8 +103,8 @@ module.exports = class SpellToolbarView extends View
|
||||||
|
|
||||||
updateScroll: ->
|
updateScroll: ->
|
||||||
return unless statementStart = @callState?.statements?[@statementIndex]?.range[0]
|
return unless statementStart = @callState?.statements?[@statementIndex]?.range[0]
|
||||||
text = @ace.getValue()
|
text = @ace.getValue() # code in editor
|
||||||
currentLine = text.substr(0, statementStart).split('\n').length - 1
|
currentLine = statementStart.row
|
||||||
@ace.scrollToLine currentLine, true, true
|
@ace.scrollToLine currentLine, true, true
|
||||||
|
|
||||||
setCallState: (callState, statementIndex, @callIndex, @metrics) ->
|
setCallState: (callState, statementIndex, @callIndex, @metrics) ->
|
||||||
|
|
Loading…
Reference in a new issue