diff options
| author | Juno_okyo <[email protected]> | 2016-11-29 04:42:32 +0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-11-28 13:42:32 -0800 |
| commit | 8c17e5fb3c77da66a682355effe9ce336ead690e (patch) | |
| tree | 0e74de40235f53024235359158c5f6f5a97dcf38 /js/src | |
| parent | c3ffe135537f06229a74a58b881f7e2417d5c118 (diff) | |
| download | bootstrap-8c17e5fb3c77da66a682355effe9ce336ead690e.tar.xz bootstrap-8c17e5fb3c77da66a682355effe9ce336ead690e.zip | |
Use multi-selector to remove the same event handler (#20642)
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/modal.js | 5 |
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 |
