Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move get element functionality to a helper #33327

Merged
merged 2 commits into from May 13, 2021

Conversation

GeoSot
Copy link
Member

@GeoSot GeoSot commented Mar 10, 2021

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

@GeoSot GeoSot force-pushed the get-element-vrom-variable-obj branch from 610338c to 7c062af Compare April 6, 2021 23:21
@GeoSot GeoSot changed the title Merge get element functionality either is jquery, or node, or string Move get element functionality to helper either is jquery, node, or string Apr 6, 2021
@GeoSot GeoSot marked this pull request as ready for review April 6, 2021 23:23
@GeoSot GeoSot requested a review from a team as a code owner April 6, 2021 23:23
@GeoSot GeoSot force-pushed the get-element-vrom-variable-obj branch 2 times, most recently from 5330190 to cc58af5 Compare April 6, 2021 23:51
@GeoSot GeoSot force-pushed the get-element-vrom-variable-obj branch 2 times, most recently from ac0d09e to 5ccda43 Compare April 19, 2021 21:08
@GeoSot GeoSot added this to Inbox in v5.0.1 via automation Apr 22, 2021
@GeoSot GeoSot force-pushed the get-element-vrom-variable-obj branch from 5ccda43 to f9815b7 Compare April 26, 2021 00:23
@GeoSot GeoSot force-pushed the get-element-vrom-variable-obj branch from f9815b7 to ae16134 Compare May 5, 2021 21:08
@GeoSot GeoSot requested a review from alpadev May 6, 2021 14:04
@GeoSot GeoSot moved this from Inbox to Review in v5.0.1 May 7, 2021
@GeoSot GeoSot force-pushed the get-element-vrom-variable-obj branch 3 times, most recently from 48f7b45 to 54c25be Compare May 11, 2021 07:48
@XhmikosR XhmikosR changed the title Move get element functionality to helper either is jquery, node, or string Move get element functionality to a helper May 11, 2021
@GeoSot GeoSot force-pushed the get-element-vrom-variable-obj branch 2 times, most recently from 4a4d9d2 to 4ce3091 Compare May 12, 2021 10:17
@GeoSot GeoSot force-pushed the get-element-vrom-variable-obj branch from 4ce3091 to 976d762 Compare May 13, 2021 13:40
v5.0.1 automation moved this from Review to Approved May 13, 2021
@XhmikosR XhmikosR merged commit 6e1c909 into twbs:main May 13, 2021
v5.0.1 automation moved this from Approved to Done May 13, 2021
@GeoSot GeoSot deleted the get-element-vrom-variable-obj branch May 13, 2021 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v5.0.1
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants