Commit 7d27cb2
committed
feat: New function for getting elements by attribute defined selector type
This change introduces a new function called `getElements` that takes an element and a prefix as arguments and returns an array of elements based on different selectors. The function is used in the code to select elements using various selectors, such as `selector`, `closest`, `parent`, `next`, and `previous`. The new function improves code readability and reusability.1 parent 0c4185a commit 7d27cb2
1 file changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
295 | 327 | | |
296 | 328 | | |
297 | 329 | | |
| |||
573 | 605 | | |
574 | 606 | | |
575 | 607 | | |
| 608 | + | |
576 | 609 | | |
577 | 610 | | |
578 | 611 | | |
| |||
0 commit comments