Skip to content

Commit ec82529

Browse files
committed
some linting in plot_api.js
1 parent 5abfe58 commit ec82529

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/plot_api/plot_api.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ exports.plot = function(gd, data, layout, config) {
135135
gd.empty = false;
136136
}
137137

138-
if(!gd.layout || graphWasEmpty) gd.layout = helpers.cleanLayout(layout);
138+
if(!gd.layout || graphWasEmpty) {
139+
gd.layout = helpers.cleanLayout(layout);
140+
}
139141

140142
// if the user is trying to drag the axes, allow new data and layout
141143
// to come in but don't allow a replot.
@@ -195,7 +197,7 @@ exports.plot = function(gd, data, layout, config) {
195197
if(gd._context.responsive) {
196198
if(!gd._responsiveChartHandler) {
197199
// Keep a reference to the resize handler to purge it down the road
198-
gd._responsiveChartHandler = function() {Plots.resize(gd);};
200+
gd._responsiveChartHandler = function() { Plots.resize(gd); };
199201

200202
// Listen to window resize
201203
window.addEventListener('resize', gd._responsiveChartHandler);
@@ -242,10 +244,10 @@ exports.plot = function(gd, data, layout, config) {
242244
return 'gl-canvas gl-canvas-' + d.key.replace('Layer', '');
243245
})
244246
.style({
245-
'position': 'absolute',
246-
'top': 0,
247-
'left': 0,
248-
'overflow': 'visible',
247+
position: 'absolute',
248+
top: 0,
249+
left: 0,
250+
overflow: 'visible',
249251
'pointer-events': 'none'
250252
});
251253
}

0 commit comments

Comments
 (0)