aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
Diffstat (limited to 'js/src')
-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 447e32acf..61a28dbf5 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