Open wieso opened 4 years ago
If document.querySelector(scrollContainer) is null, set window to scrollport. If scrollContainer is DOMNode, set scrollContainer to scrollport.
@wieso, if someone will pass number or null or anything else instead of string or node it will crash
If document.querySelector(scrollContainer) is null, set window to scrollport. If scrollContainer is DOMNode, set scrollContainer to scrollport.