-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event delegation #203
Event delegation #203
Conversation
@pierangelomiceli intanto correggo l'articolo, manca però la traduzione degli esercizi e delle soluzioni |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ho fatto solamente un check dei typos, dopo leggo l'articolo e ti do un feedback più dettagliato
Co-authored-by: Andrea <45577511+longo-andrea@users.noreply.github.com>
Chiarimenti: | ||
1. Il metodo `elem.closest(selector)` ritorna l'antenato più vicino che combacia con il selettore. Nel nostro caso cerchiamo un `<td>` verso l'alto dall'elemento di origine dell'evento. | ||
2. Se `event.target` non è dentro nessun `<td>`, la chiamata esce immediatamente, dal momento che non c'è nulla da fare. | ||
3. Ne caso di tabelle annidate, `event.target` potrebbe essere un `<td>`, ma fuori dalla tabelle corrente. Quindi andiamo a controllare se sia il `<td>` della *nostra tabella*. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3. Ne caso di tabelle annidate, `event.target` potrebbe essere un `<td>`, ma fuori dalla tabelle corrente. Quindi andiamo a controllare se sia il `<td>` della *nostra tabella*. | |
3. Nel caso di tabelle annidate, `event.target` potrebbe essere un `<td>`, ma fuori dalla tabelle corrente. Quindi andiamo a controllare se sia il `<td>` della *nostra tabella*. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/done
Please make the requested changes. After it, add a comment "/done". |
Co-authored-by: Andrea <45577511+longo-andrea@users.noreply.github.com>
Co-authored-by: Andrea <45577511+longo-andrea@users.noreply.github.com>
Co-authored-by: Andrea <45577511+longo-andrea@users.noreply.github.com>
Co-authored-by: Andrea <45577511+longo-andrea@users.noreply.github.com>
Co-authored-by: Andrea <45577511+longo-andrea@users.noreply.github.com>
Gli esercizi tradotti sono nella PR #205 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Qualche pioccola nota
Co-authored-by: Simone Pasini <66781510+pasor1@users.noreply.github.com>
Co-authored-by: Simone Pasini <66781510+pasor1@users.noreply.github.com>
Co-authored-by: Simone Pasini <66781510+pasor1@users.noreply.github.com>
Co-authored-by: Simone Pasini <66781510+pasor1@users.noreply.github.com>
Co-authored-by: Simone Pasini <66781510+pasor1@users.noreply.github.com>
Co-authored-by: Simone Pasini <66781510+pasor1@users.noreply.github.com>
Co-authored-by: Simone Pasini <66781510+pasor1@users.noreply.github.com>
Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉 |
No description provided.