2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-21 13:24:08 +03: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
+1 -4
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