Commit 95b6b635 authored by David Schnur's avatar David Schnur

Merge pull request #1316 from jacoblwe20/0.9-work

Removing appending warning to dom
parents 4ff36332 46719d55
......@@ -254,6 +254,8 @@ More detail and specific examples can be found in the included HTML file.
function draw(plot, newCtx) {
/* global console */
if (!target) {
return; // if no series were passed
}
......@@ -327,7 +329,9 @@ More detail and specific examples can be found in the included HTML file.
if (attempts >= REDRAW_ATTEMPTS) {
clear();
target.prepend("<div class='error'>Could not draw pie with labels contained inside canvas</div>");
if ( typeof console === "object" && typeof console.warn === "function" ) {
console.warn("Could not draw pie with labels contained inside canvas");
}
}
if (plot.setSeries && plot.insertLegend) {
......
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