Commit 46719d55 authored by Jacob Lowe's avatar Jacob Lowe

requested revisions, switching to dubs, and jshint declaration

parent 6df2a921
...@@ -254,6 +254,8 @@ More detail and specific examples can be found in the included HTML file. ...@@ -254,6 +254,8 @@ More detail and specific examples can be found in the included HTML file.
function draw(plot, newCtx) { function draw(plot, newCtx) {
/* global console */
if (!target) { if (!target) {
return; // if no series were passed return; // if no series were passed
} }
...@@ -327,7 +329,7 @@ More detail and specific examples can be found in the included HTML file. ...@@ -327,7 +329,7 @@ More detail and specific examples can be found in the included HTML file.
if (attempts >= REDRAW_ATTEMPTS) { if (attempts >= REDRAW_ATTEMPTS) {
clear(); clear();
if ( typeof console === 'object' && typeof console.warn === 'function' ) { if ( typeof console === "object" && typeof console.warn === "function" ) {
console.warn("Could not draw pie with labels contained inside canvas"); console.warn("Could not draw pie with labels contained inside canvas");
} }
} }
......
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