Skip to content

Commit

Permalink
canvas: display event name if not undefined
Browse files Browse the repository at this point in the history
fix currentTime not displayed if name === 0
  • Loading branch information
mangui committed Jun 9, 2016
1 parent 60dbea9 commit 8e57396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@
ctx.fillStyle = "black";
ctx.font = "15px Arial";
legend = event.type;
if (event.name) legend+= ':' + event.name;
if (event.name !== undefined) legend+= ':' + event.name;
ctx.fillText(legend,5,yoffset+15);


Expand Down

0 comments on commit 8e57396

Please sign in to comment.