Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #61 — Cannot read property offsetWidth of null when the selector …
…doesnt exist (check earlier)
- Loading branch information
7e09002
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Czesc !
Sorry to bother you but I have a problem that I'm unable to fix or even understand. Short version: when I use Siema in a single page I made, works like a charm, but when I try to use it in another project I get an error:
TypeError: this.selector is null siema.js:1:1538
Any idea?
Thanks in advance
7e09002
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Siema :)
Check for selector earlier, and then instantiate Siema when it exists. Everything will work like a charm then. Example:
Have a great :-)
7e09002
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dziękuję bardzo! Works great now. Must say that I had a flexbox implementation that Siema did not love much. It wasn't the selector problem only