Skip to content

Commit 3918bdc

Browse files
committed
lint
1 parent e39244d commit 3918bdc

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

devtools/test_dashboard/buttons.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var Lib = require('@src/lib');
44

5-
var plotlist = document.getElementById('plot-list');
5+
var plotList = document.getElementById('plot-list');
66
var anchor = document.getElementById('embedded-graph');
77
var image = document.getElementById('embedded-image');
88

@@ -14,18 +14,15 @@ anchor.style.height = '600px';
1414
anchor.style.width = '1000px';
1515

1616
function plotButtons(plots, figDir) {
17-
1817
Object.keys(plots).forEach(function(plotname) {
19-
2018
var button = document.createElement('button');
2119

2220
button.style.cssFloat = 'left';
2321
button.style.width = '100px';
2422
button.style.height = '40px';
25-
2623
button.innerHTML = plotname;
2724

28-
plotlist.appendChild(button);
25+
plotList.appendChild(button);
2926

3027
button.addEventListener('click', function() {
3128

@@ -58,7 +55,7 @@ function plotButtons(plots, figDir) {
5855
snapshot.innerHTML = 'snapshot';
5956
snapshot.style.background = 'blue';
6057

61-
plotlist.appendChild(snapshot);
58+
plotList.appendChild(snapshot);
6259

6360
snapshot.addEventListener('click', function() {
6461

@@ -111,7 +108,7 @@ function plotButtons(plots, figDir) {
111108
pummelButton.style.marginLeft = '25px';
112109
pummelButton.innerHTML = 'pummel3d';
113110
pummelButton.style.background = 'blue';
114-
plotlist.appendChild(pummelButton);
111+
plotList.appendChild(pummelButton);
115112

116113
var i = 0;
117114
var mock = require('@mocks/gl3d_marker-color.json');
@@ -147,7 +144,7 @@ function plotButtons(plots, figDir) {
147144
scrapeButton.style.marginLeft = '25px';
148145
scrapeButton.innerHTML = 'scrape SVG';
149146
scrapeButton.style.background = 'blue';
150-
plotlist.appendChild(scrapeButton);
147+
plotList.appendChild(scrapeButton);
151148

152149
scrapeButton.addEventListener('click', function() {
153150
Plotly.Snapshot.toSVG(Tabs.get());

devtools/test_dashboard/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
getGraph: function() {
2828
return document.getElementById('embedded-graph').children[0];
2929
},
30+
3031
fresh: function() {
3132
var anchor = document.getElementById('embedded-graph'),
3233
graphDiv = Tabs.getGraph();
@@ -37,6 +38,7 @@
3738

3839
return graphDiv;
3940
},
41+
4042
plotMock: function(mockName) {
4143
var mockURL = '../../test/image/mocks/' + mockName + '.json';
4244

0 commit comments

Comments
 (0)