webdial

Incomplete JS port of moondial.
git clone https://code.literati.org/webdial.git
Log | Files | Refs

commit c14d769dcddb15dbd1711c764461d4c463b9eaef
parent c510fd33482344c4d81279123da5c2b2fcfb7028
Author: Sean Lynch <seanl@literati.org>
Date:   Wed,  7 Sep 2011 21:59:44 -0700

Try figuring out what the XHR error is.

Diffstat:
Mwebdial.js | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/webdial.js b/webdial.js @@ -31,9 +31,15 @@ function WebDial(canvas) { drawMap(); } + function errCallback(xhr, status, error) { + console.debug("error: ", xhr, status, error); + } + this.go = function() { $.ajax("https://raw.github.com/seanlynch/webdial/master/continent.json", {dataType: "json", - success: mapCallback}); + success: mapCallback, + error: errCallback + }); } } \ No newline at end of file