Skip to content

Commit

Permalink
fix bug with text value
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Jul 5, 2013
1 parent 197b47a commit 30dc337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circular-progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
extendCtx(ctx, options.text);
}

text = options.text.value === null ? (percent | 0) + '%' : '';
text = options.text.value === null ? (percent | 0) + '%' : options.text.value;
tw = ctx.measureText(text).width;
fontSize = ctx.font.match(/(\d+)px/);
fontSize = fontSize ? fontSize[1] : 0;
Expand Down

0 comments on commit 30dc337

Please sign in to comment.