Skip to content

Change this to window #4

Open
Open
@ptarjan

Description

In https://github.com/nathanhammond/libphonenumber/blob/master/dist/libphonenumber.js#L1 the very first line is var aa = this. When using your library with browserify, your library will be in a closure whose context is not the window, but instead undefined.

Can you just change it to var aa = window? I'm sure this could be fixed in closure too, but I don't know that code well enough to open the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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