Skip to content

Commit

Permalink
fixed linting issue in timeline plugin (katspaugh#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
mspae authored and thijstriemstra committed Oct 31, 2017
1 parent 9245f38 commit a84eeaf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugin/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,14 +362,13 @@ export default class TimelinePlugin {
fillText(text, x, y) {
let textWidth;
let xOffset = 0;
let i;

this.canvases.forEach(canvas => {
const context = canvas.getContext('2d');
const canvasWidth = context.canvas.width;

if (xOffset > x + textWidth) {
break;
return;
}

if (xOffset + canvasWidth > x) {
Expand All @@ -378,6 +377,6 @@ export default class TimelinePlugin {
}

xOffset += canvasWidth;
}
});
}
}

0 comments on commit a84eeaf

Please sign in to comment.