Skip to content

Commit

Permalink
BrowserView: Remove webview props from tab.ts.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsvipul committed Jul 18, 2019
1 parent e78135d commit 29bc1c0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/renderer/js/components/tab.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';

import WebView = require('./webview');
import BaseComponent = require('./base');

// TODO: TypeScript - Type annotate props
Expand All @@ -10,13 +9,10 @@ interface TabProps {

class Tab extends BaseComponent {
props: TabProps;
webview: WebView;
$el: Element;
constructor(props: TabProps) {
super();

this.props = props;
this.webview = this.props.webview;
}

registerListeners(): void {
Expand All @@ -27,17 +23,14 @@ class Tab extends BaseComponent {

activate(): void {
this.$el.classList.add('active');
this.webview.load();
}

deactivate(): void {
this.$el.classList.remove('active');
this.webview.hide();
}

destroy(): void {
this.$el.parentNode.removeChild(this.$el);
this.webview.$el.parentNode.removeChild(this.webview.$el);
}
}

Expand Down

0 comments on commit 29bc1c0

Please sign in to comment.