Skip to content

Commit

Permalink
Ensure paths for separate elements don't join in IE.
Browse files Browse the repository at this point in the history
  • Loading branch information
henry committed Jan 31, 2013
1 parent 5630872 commit 00d48a0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions coolclock.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,12 @@ CoolClock.prototype = {
this.ctx.globalAlpha = skin.alpha;
this.ctx.lineWidth = skin.lineWidth;

if (!CoolClock.config.isIE) {
this.ctx.beginPath();
}

if (CoolClock.config.isIE) {
// excanvas doesn't scale line width so we will do it here
this.ctx.lineWidth = this.ctx.lineWidth * this.scale;
}

this.ctx.beginPath();
this.ctx.arc(x, y, skin.radius, 0, 2*Math.PI, true);

if (skin.fillColor) {
Expand Down

0 comments on commit 00d48a0

Please sign in to comment.