0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00
Bootstrap/js
GeoSot 6e1c9096f0
Move get element functionality to a helper (#33327)
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
2021-05-13 18:17:20 +03:00
..
dist Release v5.0.0 (#33647) 2021-05-05 22:32:12 +03:00
src Move get element functionality to a helper (#33327) 2021-05-13 18:17:20 +03:00
tests Move get element functionality to a helper (#33327) 2021-05-13 18:17:20 +03:00
index.esm.js Release v5.0.0 (#33647) 2021-05-05 22:32:12 +03:00
index.umd.js Release v5.0.0 (#33647) 2021-05-05 22:32:12 +03:00