From aa17cbd8bdb668203bbcb247f4a2f22ec4125c19 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 14 Jan 2019 17:59:12 -0500 Subject: [PATCH] remove unnecessary code & properties from plugin tab --- src/app/tabs/plugin-tab.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/app/tabs/plugin-tab.js b/src/app/tabs/plugin-tab.js index 5fbb6c56a8..a92f92939f 100644 --- a/src/app/tabs/plugin-tab.js +++ b/src/app/tabs/plugin-tab.js @@ -1,28 +1,22 @@ 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`
` - return this._view.el + return this.el } }