remove uneeded code

pull/1/head
yann300 7 years ago
parent 8eaff08d13
commit acbfdccf33
  1. 4
      src/app.js
  2. 1
      src/app/editor-panel.js

@ -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

Loading…
Cancel
Save