Fix linter error
This commit is contained in:
parent
76534cd844
commit
1aac54cefc
|
@ -54,11 +54,7 @@ define(['codemirror'], (CodeMirror) => {
|
||||||
this._downloadPNGFocus = this._downloadPNGFocus.bind(this);
|
this._downloadPNGFocus = this._downloadPNGFocus.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
build(container) {
|
buildOptions() {
|
||||||
this.codePane = makeNode('div', {'class': 'pane-code'});
|
|
||||||
this.viewPane = makeNode('div', {'class': 'pane-view'});
|
|
||||||
this.viewPaneInner = makeNode('div', {'class': 'pane-view-inner'});
|
|
||||||
|
|
||||||
this.downloadPNG = makeNode('a', {
|
this.downloadPNG = makeNode('a', {
|
||||||
'href': '#',
|
'href': '#',
|
||||||
'download': 'SequenceDiagram.png',
|
'download': 'SequenceDiagram.png',
|
||||||
|
@ -78,11 +74,20 @@ define(['codemirror'], (CodeMirror) => {
|
||||||
this.downloadSVG.appendChild(makeText('SVG'));
|
this.downloadSVG.appendChild(makeText('SVG'));
|
||||||
on(this.downloadSVG, ['click'], this._downloadSVGClick);
|
on(this.downloadSVG, ['click'], this._downloadSVGClick);
|
||||||
|
|
||||||
this.options = makeNode('div', {'class': 'options'});
|
const options = makeNode('div', {'class': 'options'});
|
||||||
this.options.appendChild(this.downloadPNG);
|
options.appendChild(this.downloadPNG);
|
||||||
this.options.appendChild(this.downloadSVG);
|
options.appendChild(this.downloadSVG);
|
||||||
this.viewPane.appendChild(this.options);
|
return options;
|
||||||
|
}
|
||||||
|
|
||||||
|
build(container) {
|
||||||
|
this.codePane = makeNode('div', {'class': 'pane-code'});
|
||||||
|
this.viewPane = makeNode('div', {'class': 'pane-view'});
|
||||||
|
this.viewPaneInner = makeNode('div', {'class': 'pane-view-inner'});
|
||||||
|
|
||||||
|
const options = this.buildOptions();
|
||||||
this.viewPane.appendChild(this.viewPaneInner);
|
this.viewPane.appendChild(this.viewPaneInner);
|
||||||
|
this.viewPane.appendChild(options);
|
||||||
|
|
||||||
container.appendChild(this.codePane);
|
container.appendChild(this.codePane);
|
||||||
container.appendChild(this.viewPane);
|
container.appendChild(this.viewPane);
|
||||||
|
|
Loading…
Reference in New Issue