Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'gh-pages' of github.com:medialize/URI.js into gh-pages

  • Loading branch information...
commit 0cd4b1f09c7367d86e51731e692c3d20111f2681 2 parents dc66874 + 0c090b1
Rodney Rehm rodneyrehm authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 docs.html
  2. +1 −1  src/URI.js
4 docs.html
View
@@ -310,9 +310,9 @@ <h3 id="accessors-password">password()</h3>
<h3 id="accessors-hostname">hostname()</h3>
<pre class="prettyprint lang-js">var uri = new URI("http://example.org/foo/hello.html");
-// get protocol
+// get hostname
uri.hostname(); // returns string
-// set protocol
+// set hostname
uri.hostname("example.org"); // returns the URI instance for chaining</pre>
<p class="note"><a href="#accessors-hostname">.hostname()</a> returns the actual hostname, whereas <a href="#accessors-host">.host()</a> returns the hostname including the port</p>
2  src/URI.js
View
@@ -694,7 +694,7 @@
data[name] = undefined;
}
} else {
- throw new TypeError('URI.addQuery() accepts an object, string as the first parameter');
+ throw new TypeError('URI.removeQuery() accepts an object, string as the first parameter');
}
};
URI.hasQuery = function(data, name, value, withinArray) {
Please sign in to comment.
Something went wrong with that request. Please try again.