Init js namespace one time

This commit is contained in:
Mathieu Magnin 2017-07-25 12:26:11 +02:00
parent 373d9999fc
commit bc07082d17
3 changed files with 3 additions and 2 deletions

View file

@ -10,6 +10,7 @@
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require ./init
//= require jquery
//= require jquery_ujs
//= require turbolinks

View file

@ -1,5 +1,3 @@
window.TPS = window.TPS || {};
$(document).on("click", "body", function () {
$(".header-menu").removeClass("open fade-in-down");
});

View file

@ -0,0 +1,2 @@
// namespace
window.TPS = window.TPS || {};