Refactor
This commit is contained in:
parent
b6aef2bcf8
commit
33051841f5
10 changed files with 32 additions and 39 deletions
|
|
@ -1,11 +1,10 @@
|
|||
import { createElement } from '../../helper/create-element';
|
||||
import { PageElement } from '../page-element';
|
||||
import { VideoParameters } from './video-parameters';
|
||||
import { generate } from './video.html';
|
||||
|
||||
export class Video extends PageElement {
|
||||
public constructor(options: VideoParameters) {
|
||||
super(createElement(generate(options)));
|
||||
super(generate(options));
|
||||
|
||||
this.query('.start-button').addEventListener('click', this.startVideo.bind(this));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue