From eecf6d313f59c19b7dfdffa59ea79576d094924f Mon Sep 17 00:00:00 2001
From: J2TeaM <junookyo@gmail.com>
Date: Tue, 6 Sep 2016 18:22:56 +0700
Subject: [PATCH] Use multi-selector to remove the same event handler

---
 js/src/modal.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/js/src/modal.js b/js/src/modal.js
index ebd3e4a34f..69435e1078 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -188,10 +188,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
-- 
GitLab