Unverified Commit 7823d732 authored by yann300's avatar yann300 Committed by GitHub

Update compile-tab.js

parent e7109135
...@@ -80,7 +80,6 @@ class CompileTab extends CompilerApi { ...@@ -80,7 +80,6 @@ class CompileTab extends CompilerApi {
this.events.emit('statusChanged', {key: 'edited', title: 'the content has changed, needs recompilation', type: 'info'}) this.events.emit('statusChanged', {key: 'edited', title: 'the content has changed, needs recompilation', type: 'info'})
} }
this.editor.event.register('contentChanged', onContentChanged) this.editor.event.register('contentChanged', onContentChanged)
this.editor.event.register('sessionSwitched', onContentChanged)
this.compiler.event.register('loadingCompiler', () => { this.compiler.event.register('loadingCompiler', () => {
this.events.emit('statusChanged', {key: 'loading', title: 'loading compiler...', type: 'info'}) this.events.emit('statusChanged', {key: 'loading', title: 'loading compiler...', type: 'info'})
...@@ -100,7 +99,6 @@ class CompileTab extends CompilerApi { ...@@ -100,7 +99,6 @@ class CompileTab extends CompilerApi {
this.fileManager.events.on('currentFileChanged', (name) => { this.fileManager.events.on('currentFileChanged', (name) => {
this.compilerContainer.currentFile = name this.compilerContainer.currentFile = name
cleanupErrors() cleanupErrors()
onContentChanged()
}) })
this.fileManager.events.on('noFileSelected', () => { this.fileManager.events.on('noFileSelected', () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment