diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2014-07-14 20:52:08 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-14 21:38:22 -0700 |
commit | 5723cfc1d09a2722740c135dde1dd8409ad6bdb8 (patch) | |
tree | 4df1676353180de763673280ca58c41e19c8ea71 /theme | |
parent | a50631e026834c6f2057fc8e1f81704ecc5d1d74 (diff) | |
download | subsurface-5723cfc1d09a2722740c135dde1dd8409ad6bdb8.tar.gz |
Removing extra commas from array initialization
Comma should be used on array initialization only between elements, not
at the end.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'theme')
-rw-r--r-- | theme/list_lib.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js index 89adba98b..899f059dc 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -855,14 +855,14 @@ function canvas_draw() if (items[dive_id].samples[i][3] !== 0) { temperatureData.push([ items[dive_id].samples[i][0] / 60, - mkelvin_to_C(items[dive_id].samples[i][3]), + mkelvin_to_C(items[dive_id].samples[i][3]) ]); last = items[dive_id].samples[i][3]; } else { if (last !== 0) { temperatureData.push([ items[dive_id].samples[i][0] / 60, - mkelvin_to_C(last), + mkelvin_to_C(last) ]); } } @@ -870,14 +870,14 @@ function canvas_draw() for (var i = 0; i < items[dive_id].events.length; i++) { eventsData.push([ items[dive_id].events[i].time / 60, - 0, + 0 ]); } plot1 = $.jqplot('chart1', [ depthData, pressureData, eventsData, - temperatureData, + temperatureData ], { grid : { @@ -906,27 +906,27 @@ function canvas_draw() showMarker : true, showLine : true, fill : true, - yaxis : 'yaxis', + yaxis : 'yaxis' }, { color : 'rgba(44, 190, 160, 0.7)', showMarker : false, rendererOptions : { - smooth : true, + smooth : true }, - yaxis : 'y2axis', + yaxis : 'y2axis' }, { showLine:false, markerOptions: { size: 10, style:"o" }, - pointLabels: { show:false, } , + pointLabels: { show:false } }, { showLine:true, showMarker : false, - pointLabels: { show:false, } , - yaxis : 'y3axis', - }, + pointLabels: { show:false }, + yaxis : 'y3axis' + } ], axes : { xaxis : { @@ -934,7 +934,7 @@ function canvas_draw() tickRenderer : $.jqplot.CanvasAxisTickRenderer, tickOptions : { showGridline : false, - formatString : '%i', + formatString : '%i' }, label:'Time (min)' }, @@ -961,9 +961,9 @@ function canvas_draw() showMark: false, showLabel: false, shadow: false, - formatString : '%i C', - }, - }, + formatString : '%i C' + } + } } }); } |