From bd32a8930dd0a56cfb8f522a2e392527d10839a4 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sun, 10 Jan 2016 10:01:09 -0800 Subject: [PATCH] null when battery is unknown makes the line break instead of jump to -1 --- compass/public/assets/battery.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compass/public/assets/battery.js b/compass/public/assets/battery.js index 4700c2c..2ffd2f0 100644 --- a/compass/public/assets/battery.js +++ b/compass/public/assets/battery.js @@ -5,12 +5,12 @@ function pointFromGeoJSON(geo) { } function showBatteryGraph(response) { - + var data = response.linestring; - + var batteryStateBands = []; var buckets = data.properties.map(function(d){return d.battery_state}).findRanges(); - + for(var i in buckets) { for(var j=0; j