1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-10-10 02:54:25 +02:00

prettify all src js files. Remove space rules from eslint

This commit is contained in:
Kushagra Gour
2017-07-04 02:47:49 +05:30
parent 95585c6274
commit ca1f255a34
12 changed files with 1100 additions and 593 deletions

View File

@@ -12,8 +12,8 @@
}
function init() {
var dropdowns = $all('[dropdown]');
dropdowns.forEach(function (dropdown) {
dropdown.addEventListener('click', function (e) {
dropdowns.forEach(function(dropdown) {
dropdown.addEventListener('click', function(e) {
closeOpenDropdown(e.currentTarget);
e.currentTarget.classList.toggle('open');
openDropdown = e.currentTarget;
@@ -21,10 +21,10 @@
});
});
document.addEventListener('click', function () {
document.addEventListener('click', function() {
closeOpenDropdown();
});
}
init();
})($all);
})($all);