TypeError: _this._events.onWindowResize is not a function
It looks like the only place onWindowResize is initialised is if refreshOnResize is set to true in the options, so the code should probably check first if onWindowResize is defined before calling it?
Although also note that even if you provide refreshOnResize: true in the options (which is default true anyway..), the hide method still throws this error, so something odd is going on.
Hi, thanks for your work on this package.
When running the
hide
method, an error is thrown:It looks like the only place
onWindowResize
is initialised is ifrefreshOnResize
is set totrue
in the options, so the code should probably check first ifonWindowResize
is defined before calling it?Although also note that even if you provide
refreshOnResize: true
in the options (which is defaulttrue
anyway..), thehide
method still throws this error, so something odd is going on.