Skip to content

Commit 6856440

Browse files
committed
lint
1 parent 44a34f0 commit 6856440

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/colorbar/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ module.exports = function draw(gd, id) {
254254

255255
cbAxisOut._axislayer = container.select('.cbaxis');
256256
var titleHeight = 0;
257-
if(['top', 'bottom'].indexOf(opts.titleside) !==- 1) {
257+
if(['top', 'bottom'].indexOf(opts.titleside) !== -1) {
258258
// draw the title so we know how much room it needs
259259
// when we squish the axis
260260
Titles.draw(gd, cbAxisOut._id + 'title');

src/components/titles/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ Titles.draw = function(gd, title) {
244244
avoid.selection.each(function(){
245245
var avoidbb = Drawing.bBox(this);
246246

247-
if(Lib.bBoxIntersect(titlebb,avoidbb,pad)) {
247+
if(Lib.bBoxIntersect(titlebb, avoidbb, pad)) {
248248
shift = Math.max(shift, shiftSign * (
249249
avoidbb[avoid.side] - titlebb[backside]) + pad);
250250
}

0 commit comments

Comments
 (0)