Commit dfe6deca authored by yann300's avatar yann300

add log function

parent c27a30c5
...@@ -236,6 +236,11 @@ class EditorPanel { ...@@ -236,6 +236,11 @@ class EditorPanel {
var self = this var self = this
self._view.tabs.onmouseenter() self._view.tabs.onmouseenter()
} }
log (data = {}) {
var self = this
var command = self._components.terminal.commands[data.type]
if (typeof command === 'function') command(data.value)
}
render () { render () {
var self = this var self = this
if (self._view.el) return self._view.el if (self._view.el) return self._view.el
......
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