Skip to content

Commit 5632574

Browse files
adamzapbmispelon
authored andcommitted
Removed unused arguments in messages JavaScript
These event arguments must have been left from a previous approach. They are not used, so they can be removed. This was missed in 20cec45.
1 parent 9b4e170 commit 5632574

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

djangoproject/static/js/djangoproject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ document.querySelectorAll('#doc-versions a').forEach(function (el) {
1414

1515
// Fade out and remove message elements when close icon is clicked
1616
document.querySelectorAll('.messages li .close').forEach(function (el) {
17-
el.addEventListener('click', function (e) {
18-
this.parentElement.addEventListener('transitionend', function (e) {
17+
el.addEventListener('click', function () {
18+
this.parentElement.addEventListener('transitionend', function () {
1919
this.style.display = 'none';
2020
});
2121

0 commit comments

Comments
 (0)