From 4ba5f32b554265d4317bd055f1819d9bc1105057 Mon Sep 17 00:00:00 2001 From: Akiko Takano Date: Sun, 21 Jun 2020 23:29:37 +0900 Subject: [PATCH] Add use strict statement. --- assets/javascripts/issue_templates.js | 2 ++ assets/javascripts/template_checklists.js | 1 + assets/javascripts/template_fields.js | 1 + 3 files changed, 4 insertions(+) diff --git a/assets/javascripts/issue_templates.js b/assets/javascripts/issue_templates.js index 6239944d..093f1a11 100644 --- a/assets/javascripts/issue_templates.js +++ b/assets/javascripts/issue_templates.js @@ -7,6 +7,8 @@ // For namespace setting. // var ISSUE_TEMPLATE = ISSUE_TEMPLATE || function () {} +'use strict' + function ISSUE_TEMPLATE(config) { this.pulldownUrl = config.pulldownUrl this.loadUrl = config.loadUrl diff --git a/assets/javascripts/template_checklists.js b/assets/javascripts/template_checklists.js index 7f547e72..0924165d 100644 --- a/assets/javascripts/template_checklists.js +++ b/assets/javascripts/template_checklists.js @@ -1,3 +1,4 @@ +'use strict' const removeCheckList = (obj) => { let target = obj.closest('li') target.remove() diff --git a/assets/javascripts/template_fields.js b/assets/javascripts/template_fields.js index 5df12f34..2d6fed48 100644 --- a/assets/javascripts/template_fields.js +++ b/assets/javascripts/template_fields.js @@ -1,4 +1,5 @@ // This JS is used only when create / edit template. (Using Vue.js) +'use strict' const vm = new Vue({ el: '#json_generator', data: {