diff options
author | Michal Čihař <mcihar@suse.cz> | 2013-04-15 14:13:04 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2013-04-15 14:14:26 +0400 |
commit | cc7bef87d5fc7b079b755af1442bc027591cb3fa (patch) | |
tree | 934c002f0252b28b89dee9d46e0122d38de3a2b3 /js/chart.js | |
parent | cc2c8692c38399027516e6dfe1708ab1f6082933 (diff) |
Some forgotten === conversion
Diffstat (limited to 'js/chart.js')
-rw-r--r-- | js/chart.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/chart.js b/js/chart.js index 971d57a4c3..72d1a33234 100644 --- a/js/chart.js +++ b/js/chart.js @@ -228,12 +228,12 @@ JQPlotChart.prototype.draw = function(data, options) { } }; JQPlotChart.prototype.destroy = function() { - if (this.plot != null) { + if (this.plot !== null) { this.plot.destroy(); } }; JQPlotChart.prototype.redraw = function(options) { - if (this.plot != null) { + if (this.plot !== null) { this.plot.replot(options); } }; @@ -298,7 +298,7 @@ JQPlotLineChart.prototype.prepareData = function(dataTable) { row = data[i]; for ( var j = 1; j < row.length; j++) { retRow = retData[j - 1]; - if (retRow == null) { + if (retRow === null) { retRow = []; retData[j - 1] = retRow; } @@ -378,11 +378,11 @@ JQPlotTimelineChart.prototype.prepareData = function(dataTable) { d = row[0]; for ( var j = 1; j < row.length; j++) { retRow = retData[j - 1]; - if (retRow == null) { + if (retRow === null) { retRow = []; retData[j - 1] = retRow; } - if (d != null) { + if (d !== null) { retRow.push([d.getTime(), row[j]]); } } |