Skip to content

'onWindowResize' is not a function #118

@roberttolton

Description

@roberttolton

Hi, thanks for your work on this package.

When running the hide method, an error is thrown:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions