Mercurial > hg > batmud > gmap2
changeset 201:14659de17205 gmap2
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 12 Mar 2014 06:38:24 +0200 |
parents | f5aa704b1ddf |
children | dc16e078e4e4 |
files | lib/util.js |
diffstat | 1 files changed, 0 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/util.js Wed Mar 12 06:27:26 2014 +0200 +++ b/lib/util.js Wed Mar 12 06:38:24 2014 +0200 @@ -1,9 +1,3 @@ -/** -* Returns an XMLHttp instance to use for asynchronous -* downloading. This method will never throw an exception, but will -* return NULL if the browser does not support XmlHttp for any reason. -* @return {XMLHttpRequest|Null} -*/ function XCreateXmlHTTPRequest() { try { if (typeof ActiveXObject != 'undefined') { @@ -17,13 +11,6 @@ return null; }; -/** -* This functions wraps XMLHttpRequest open/send function. -* It lets you specify a URL and will call the callback if -* it gets a status code of 200. -* @param {String} url The URL to retrieve -* @param {Function} callback The function to call once retrieved. -*/ function XDownloadUrl(url, callback) { var status = -1; var request = XCreateXmlHTTPRequest();