Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuno_okyo <J2TeaM@users.noreply.github.com>2016-11-29 00:42:32 +0300
committerMark Otto <markd.otto@gmail.com>2016-11-29 00:42:32 +0300
commit8c17e5fb3c77da66a682355effe9ce336ead690e (patch)
tree0e74de40235f53024235359158c5f6f5a97dcf38 /js/src/modal.js
parentc3ffe135537f06229a74a58b881f7e2417d5c118 (diff)
Use multi-selector to remove the same event handler (#20642)
Diffstat (limited to 'js/src/modal.js')
-rw-r--r--js/src/modal.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index 447e32acfe..61a28dbf5d 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -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