From 6df2a921dd90148ec85e85c04f2b24a7ad081dd0 Mon Sep 17 00:00:00 2001 From: Jacob Lowe Date: Tue, 27 May 2014 12:13:37 -0700 Subject: [PATCH] removing appending warning to dom --- src/plugins/jquery.flot.pie.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/jquery.flot.pie.js b/src/plugins/jquery.flot.pie.js index 0395fbd..881cfd6 100644 --- a/src/plugins/jquery.flot.pie.js +++ b/src/plugins/jquery.flot.pie.js @@ -327,7 +327,9 @@ More detail and specific examples can be found in the included HTML file. if (attempts >= REDRAW_ATTEMPTS) { clear(); - target.prepend("
Could not draw pie with labels contained inside canvas
"); + if ( typeof console === 'object' && typeof console.warn === 'function' ) { + console.warn("Could not draw pie with labels contained inside canvas"); + } } if (plot.setSeries && plot.insertLegend) {