Commit 36248ba5 authored by Iuri Matias's avatar Iuri Matias Committed by yann300

remove unnecessary code & properties from plugin tab

parent d8d07040
var yo = require('yo-yo')
var css = require('./styles/plugin-tab-styles')
var globalRegistry = require('../../global/registry')
var EventManager = require('../../lib/events')
class PluginTab {
constructor (json, localRegistry) {
this.event = new EventManager()
this._view = { el: null }
constructor (json) {
this.el = null
this.data = { json }
this._components = {}
this._components.registry = localRegistry || globalRegistry
}
render () {
if (this._view.el) return this._view.el
if (this.el) return this.el
this._view.el = yo`
this.el = yo`
<div class="${css.pluginTabView}" id="pluginView">
<iframe class="${css.iframe}" src="${this.data.json.url}/index.html"></iframe>
</div>`
return this._view.el
return this.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