Use strict mode in JavaScript

Strict mode is supported by 98% of the browsers, including Internet
Explorer 10, and it helps developers avoid common JavaScript pitfalls.
This commit is contained in:
Javi Martín
2019-06-30 21:39:06 +02:00
parent 747767386a
commit 86e704d8a4
60 changed files with 124 additions and 0 deletions

View File

@@ -88,6 +88,8 @@
//= require votations
var initialize_modules = function() {
"use strict";
App.Answers.initialize();
App.Questions.initialize();
App.Comments.initialize();
@@ -141,6 +143,8 @@ var initialize_modules = function() {
};
$(function(){
"use strict";
Turbolinks.enableProgressBar();
$(document).ready(initialize_modules);