Skip to content

.equals(undefined) #189

@joladev

Description

@joladev

If I am on the page "http://local.local" and run URI('http://local.local').equals(undefined) I get true. Comparing a different URL to undefined gives false. As far as I can tell, this only happens if the argument to URI is the current page URL.

I assume this is so that URI() is a shortcut for current URL. This can be differentiated by looking at arguments. Will make a pull request.

Using version 1.14.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions