mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-11 08:04:59 +02:00
Use multi-selector to remove the same event handler (#20642)
This commit is contained in:
@@ -186,10 +186,7 @@ const Modal = (($) => {
|
|||||||
dispose() {
|
dispose() {
|
||||||
$.removeData(this._element, DATA_KEY)
|
$.removeData(this._element, DATA_KEY)
|
||||||
|
|
||||||
$(window).off(EVENT_KEY)
|
$(window, document, this._element, this._backdrop).off(EVENT_KEY)
|
||||||
$(document).off(EVENT_KEY)
|
|
||||||
$(this._element).off(EVENT_KEY)
|
|
||||||
$(this._backdrop).off(EVENT_KEY)
|
|
||||||
|
|
||||||
this._config = null
|
this._config = null
|
||||||
this._element = null
|
this._element = null
|
||||||
|
Reference in New Issue
Block a user