Don't clear things unnecessarily
This commit is contained in:
parent
836033b935
commit
6b8a56ae4f
1 changed files with 3 additions and 2 deletions
|
@ -678,8 +678,9 @@ module.exports = class SpellView extends CocoView
|
||||||
cast = @$el.parent().length
|
cast = @$el.parent().length
|
||||||
@recompile cast, e.realTime
|
@recompile cast, e.realTime
|
||||||
@focus() if cast
|
@focus() if cast
|
||||||
|
if @options.level.isType('web-dev')
|
||||||
@clearWebDevErrors()
|
@clearWebDevErrors()
|
||||||
@updateHTML create: true if @options.level.isType('web-dev')
|
@updateHTML create: true
|
||||||
|
|
||||||
onCodeReload: (e) ->
|
onCodeReload: (e) ->
|
||||||
return unless e.spell is @spell or not e.spell
|
return unless e.spell is @spell or not e.spell
|
||||||
|
|
Reference in a new issue