1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-27 13:59:06 +02:00

Change element.parentNode.removeChild(element) to element.remove() (#34071)

This commit is contained in:
GeoSot
2021-05-25 18:30:38 +03:00
committed by GitHub
parent 69a9b87945
commit 544d9ac3cf
5 changed files with 9 additions and 15 deletions

View File

@@ -78,9 +78,7 @@ class Alert extends BaseComponent {
}
_destroyElement(element) {
if (element.parentNode) {
element.parentNode.removeChild(element)
}
element.remove()
EventHandler.trigger(element, EVENT_CLOSED)
}