Commit acbfdccf authored by yann300's avatar yann300

remove uneeded code

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