Skip to content

Commit

Permalink
Merge pull request #163 from lucas1004jx/issue#152_chart-data-morris
Browse files Browse the repository at this point in the history
change var to let and const
  • Loading branch information
UlisesGascon authored Aug 14, 2019
2 parents c192b71 + d8d0dc0 commit 0916146
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/assets/js/chart/chart-data-morris.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $(function() {
"use strict";

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

Expand Down
4 changes: 2 additions & 2 deletions app/assets/js/tour/redirects-steps.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var redirectsTour = new Tour({
const redirectsTour = new Tour({
name: "redirects"
});

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

$("#redirects-tour").on("click", function() {
$("#redirects-tour").on("click", () => {
"use strict";
redirectsTour.init();
redirectsTour.restart();
Expand Down

0 comments on commit 0916146

Please sign in to comment.