nawazdhandala / js-uri

Automatically exported from code.google.com/p/js-uri
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Feature request: resolve() defaults to current URL #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Ie. if resolve() is called without parameters, it'd do the resolving based 
on the address of the current page.

Sg. like this:
    URI.prototype.resolve = function (base) {
        if (!base) base = new URI(location.href);

(Or at least check if the parameter is set and handle if it's not.)

Original issue reported on code.google.com by bor...@gmail.com on 12 May 2009 at 4:49

GoogleCodeExporter commented 8 years ago
This would be great!

Original comment by Michael....@gmail.com on 18 May 2010 at 3:16