mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
6e1c9096f0
Looking around on js components I found out many checks, different expressed but with same purpose. Some of them are trying to parse string to element, others, jQuery element to js simple nodeElement etc With this Pr, I am trying to give a standard way to parse an element So this pr: * Creates `getElement` helper that tries to parse an argument to element or null * Changes `isElement` to make explicit checks and return Boolean * fixes tests deficiencies |
||
---|---|---|
.. | ||
dom | ||
util | ||
.eslintrc.json | ||
alert.spec.js | ||
base-component.spec.js | ||
button.spec.js | ||
carousel.spec.js | ||
collapse.spec.js | ||
dropdown.spec.js | ||
jquery.spec.js | ||
modal.spec.js | ||
offcanvas.spec.js | ||
popover.spec.js | ||
scrollspy.spec.js | ||
tab.spec.js | ||
toast.spec.js | ||
tooltip.spec.js |