Add html element constructors

This commit is contained in:
Brian Surowiec
2015-05-25 15:08:09 -04:00
parent e15a4e3df3
commit ab3cc6e0e0
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -12,6 +12,7 @@ URI({
query: 'foo=bar&bar=baz',
fragment: 'frag'
});
URI(document.createElement('a'));
new URI();
new URI('http://user:pass@example.org:80/foo/bar.html?foo=bar&bar=baz#frag');
@@ -25,6 +26,7 @@ new URI({
query: 'foo=bar&bar=baz',
fragment: 'frag'
});
new URI(document.createElement('a'));
URI('').setQuery('foo', 'bar');
URI('').setQuery({ foo: 'bar' });
+2 -2
View File
@@ -133,10 +133,10 @@ declare module uri {
interface URIStatic {
(): URI;
(value: string | URIOptions): URI;
(value: string | URIOptions | HTMLElement): URI;
new (): URI;
new (value: string | URIOptions): URI;
new (value: string | URIOptions | HTMLElement): URI;
addQuery(data: Object, prop: string, value: string): Object;
addQuery(data: Object, qryObj: Object): Object;