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
const elements = document.querySelectorAll('.rellax');
new Rellax(elements);
new SomeOtherComponent(elements);
// Do more work on the elements ...
Steps to reproduce the problem
Inside a js file write the fallowing code
Current behavior
This error is thrown
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.