]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Remove element event listeners through base component (#33429)
authorGeoSot <geo.sotis@gmail.com>
Sun, 11 Apr 2021 06:54:48 +0000 (09:54 +0300)
committerGitHub <noreply@github.com>
Sun, 11 Apr 2021 06:54:48 +0000 (09:54 +0300)
commit566451230f5c87c3d7515af02995895df610b8ac
treedd270eb14c1c2d08840f41c4f6571d42ded605c8
parentbac0b0c899b8e7fbdbc1ec7fa1ac1c5b847b3c90
Remove element event listeners through base component (#33429)

After some research, I found out that EventHandler saves all the custom events per element using namespace, and is capable of removing handlers using only the element and its namespace (`DATA_KEY`).

So, probably is better to utilize the base-component to do the same job.
js/src/base-component.js
js/src/carousel.js
js/src/dropdown.js
js/src/modal.js
js/src/toast.js
js/src/tooltip.js