2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03: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
+2 -2
View File
@@ -98,11 +98,11 @@ class Popover extends Tooltip {
this.tip = super.getTipElement()
if (!this.getTitle()) {
this.tip.removeChild(SelectorEngine.findOne(SELECTOR_TITLE, this.tip))
SelectorEngine.findOne(SELECTOR_TITLE, this.tip).remove()
}
if (!this._getContent()) {
this.tip.removeChild(SelectorEngine.findOne(SELECTOR_CONTENT, this.tip))
SelectorEngine.findOne(SELECTOR_CONTENT, this.tip).remove()
}
return this.tip