Skip to content

Commit

Permalink
Fixing issue #444 color function chokes on non-string param
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed May 8, 2016
1 parent 2f64c42 commit 79acbd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions caravel/assets/javascripts/modules/caravel.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ var color = function () {
var seen = {};
return function (s) {
if (!s) { return; }
s = String(s);
// next line is for caravel series that should have the same color
s = s.replace('---', '');
if (seen[s] === undefined) {
Expand Down

0 comments on commit 79acbd1

Please sign in to comment.