diff options
author | Michal Čihař <mcihar@suse.cz> | 2013-04-15 15:16:01 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2013-04-15 15:25:50 +0400 |
commit | e6517db98a0a03a0430ccca8d23afbeb7d30a0fc (patch) | |
tree | d7c257e7207e2e206199e0ade8091f810b78720b /js/tbl_chart.js | |
parent | 83c2a074a5855e073889008ff9428099c92c4b68 (diff) |
More javascript cleanup, more fixes of === / !===
Diffstat (limited to 'js/tbl_chart.js')
-rw-r--r-- | js/tbl_chart.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tbl_chart.js b/js/tbl_chart.js index 70a6734999..e07237ea10 100644 --- a/js/tbl_chart.js +++ b/js/tbl_chart.js @@ -195,7 +195,7 @@ function drawChart() { currentSettings.height = $('#resizer').height() - 20; // todo: a better way using .redraw() ? - if (currentChart != null) { + if (currentChart !== null) { currentChart.destroy(); } @@ -225,12 +225,12 @@ function extractDate(dateString) { var dateRegExp = /[0-9]{4}-[0-9]{2}-[0-9]{2}/; matches = dateTimeRegExp.exec(dateString); - if (matches != null && matches.length > 0) { + if (matches !== null && matches.length > 0) { match = matches[0]; return new Date(match.substr(0, 4), match.substr(5, 2), match.substr(8, 2), match.substr(11, 2), match.substr(14, 2), match.substr(17, 2)); } else { matches = dateRegExp.exec(dateString); - if (matches != null && matches.length > 0) { + if (matches !== null && matches.length > 0) { match = matches[0]; return new Date(match.substr(0, 4), match.substr(5, 2), match.substr(8, 2)); } |