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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user