diff options
author | GeoSot <geo.sotis@gmail.com> | 2021-05-13 18:17:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 18:17:20 +0300 |
commit | 6e1c9096f08ed21063fd6ba16aa998a3ac4149f9 (patch) | |
tree | f6d0ecf0ebe37529a6b5eb3c262e1d423093b6cc /js/dist/tooltip.js.map | |
parent | e376142d85e3ce0a5f5e49f3d676e419287a7292 (diff) |
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
Diffstat (limited to 'js/dist/tooltip.js.map')
0 files changed, 0 insertions, 0 deletions