Skip to content

Commit 0916146

Browse files
authored
Merge pull request #163 from lucas1004jx/issue#152_chart-data-morris
change var to let and const
2 parents c192b71 + d8d0dc0 commit 0916146

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: app/assets/js/chart/chart-data-morris.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $(function() {
33
"use strict";
44

55
if ($("#morris-chart-area").length > 0) {
6-
var oneYearAgo = new Date().getFullYear() - 1,
6+
let oneYearAgo = new Date().getFullYear() - 1,
77
twoYearsAgo = oneYearAgo - 1,
88
threeYearsAgo = oneYearAgo - 2;
99

Diff for: app/assets/js/tour/redirects-steps.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var redirectsTour = new Tour({
1+
const redirectsTour = new Tour({
22
name: "redirects"
33
});
44

@@ -20,7 +20,7 @@ redirectsTour.addSteps([{
2020
content: "Content of my popover oi"
2121
}]);
2222

23-
$("#redirects-tour").on("click", function() {
23+
$("#redirects-tour").on("click", () => {
2424
"use strict";
2525
redirectsTour.init();
2626
redirectsTour.restart();

0 commit comments

Comments
 (0)