refactor: Remove unnecessary call to .bind()

The bind() method is used to create functions with specific `this` values and, optionally, binds arguments to specific values. When used to specify the value of `this`, it's important that the function actually uses `this` in its function body.
This commit is contained in:
deepsource-autofix[bot] 2023-04-01 18:26:09 +00:00 committed by GitHub
parent 6099f25cdf
commit 1a541bc288
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ document.addEventListener('DOMContentLoaded', function() {
setTimeout(function() { setTimeout(function() {
label.style.opacity = 1; label.style.opacity = 1;
}.bind(this), 250); }, 250);
}); });
labels[i].addEventListener('mouseout', function() { labels[i].addEventListener('mouseout', function() {