Commit 9163db02 by Peter Holmberg

fix in to not render multiple labels

parent b536a9f7
...@@ -583,7 +583,7 @@ ...@@ -583,7 +583,7 @@
* @param {Number} [a] the angle of the value drawn * @param {Number} [a] the angle of the value drawn
*/ */
function drawText(x, y, id, text, textOptions, a) { function drawText(x, y, id, text, textOptions, a) {
var span = $("." + id, placeholder); var span = $(placeholder).find("#" + id);
var exists = span.length; var exists = span.length;
if (!exists) { if (!exists) {
span = $("<span></span>") span = $("<span></span>")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment