michael/github — pull request #9 by mattpass (2012-07-17 10:00:10+00:00)
Title: Raw XHR to replace jQuery AJAX

So this is an initial effort at replacing the jQuery based AJAX calls in _request & _request_raw functions.

Tested in latest Chrome, Firefox & IE and all seems to work well. Might need more testing though and perhaps someone to check it works with Node (haven't done extensive checking).

Looking at it, it doesn't seem like much code but works great as far as I can tell?? I also combined into a single function to handle both JSON & raw text callbacks, saves repeating code.

What do you think?