]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Extract static `DATA_KEY` & `EVENT_KEY` to base-component (#33635)
authorGeoSot <geo.sotis@gmail.com>
Tue, 11 May 2021 07:49:30 +0000 (10:49 +0300)
committerGitHub <noreply@github.com>
Tue, 11 May 2021 07:49:30 +0000 (10:49 +0300)
commit9fe36edf683af02574bf6bbd6c9b27de93bd31b1
tree111d2b788e990a58277ff4543cfd44c5815ac795
parent7647b8fe5b77120ba319e7119bb0515d91f734da
Extract static `DATA_KEY` & `EVENT_KEY` to base-component (#33635)

* Force each plugin that extends base-components to implement a static method `NAME()`
* Remove redundant `NAME` argument from 'Utils.defineJQueryPlugin' & fix test
16 files changed:
js/src/alert.js
js/src/base-component.js
js/src/button.js
js/src/carousel.js
js/src/collapse.js
js/src/dropdown.js
js/src/modal.js
js/src/offcanvas.js
js/src/popover.js
js/src/scrollspy.js
js/src/tab.js
js/src/toast.js
js/src/tooltip.js
js/src/util/index.js
js/tests/unit/base-component.spec.js [new file with mode: 0644]
js/tests/unit/util/index.spec.js