0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-26 23:54:23 +01:00

Use multi-selector to remove the same event handler (#20642)

This commit is contained in:
Juno_okyo 2016-11-29 04:42:32 +07:00 committed by Mark Otto
parent c3ffe13553
commit 8c17e5fb3c

View File

@ -186,10 +186,7 @@ const Modal = (($) => {
dispose() {
$.removeData(this._element, DATA_KEY)
$(window).off(EVENT_KEY)
$(document).off(EVENT_KEY)
$(this._element).off(EVENT_KEY)
$(this._backdrop).off(EVENT_KEY)
$(window, document, this._element, this._backdrop).off(EVENT_KEY)
this._config = null
this._element = null