Commit acbfdccf authored by yann300's avatar yann300

remove uneeded code

parent 8eaff08d
......@@ -101,8 +101,7 @@ class App {
self._components.editor = new Editor({}) // @TODO: put into editorpanel
// ----------------- editor panel ----------------------
self._components.editorpanel = new EditorPanel({
api: { editor: self._components.editor },
data: { _layout: self.data._layout }
api: { editor: self._components.editor }
})
self._components.editorpanel.event.register('resize', direction => self._adjustLayout(direction))
}
......@@ -697,7 +696,6 @@ function run () {
function onResize () {
editor.resize(document.querySelector('#editorWrap').checked)
}
self._onResize = window.onresize = onResize
onResize()
self._view.el.addEventListener('change', onResize)
......
......@@ -116,7 +116,6 @@ class EditorPanel {
self._view = {}
self._api = { editor: opts.api.editor }
self.event = new EventManager()
// var events = opts.events
}
refresh () {
var self = this
......
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