You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first scenario can be useful when you already stored a node list and need to share it with other components as well. On large DOM trees this could increase performance since there would be no need to query multiple times for the same elements.
For instance
constelements=document.querySelectorAll('.rellax');newRellax(elements);newSomeOtherComponent(elements);// Do more work on the elements ...
I will make a PR which enables this behavior.
The text was updated successfully, but these errors were encountered:
Steps to reproduce the problem
Inside a js file write the fallowing code
Current behavior
This error is thrown
- TypeError: el.getAttribute is not a function
Expected behavior
It should work just like
Motivation
The first scenario can be useful when you already stored a node list and need to share it with other components as well. On large DOM trees this could increase performance since there would be no need to query multiple times for the same elements.
For instance
I will make a PR which enables this behavior.
The text was updated successfully, but these errors were encountered: