Merge pull request #90 from CartoDB/master

fixed jsonp in IE10
Update src/reqwest.js

Fix a collision with Qunit's "module" function
Merge pull request #91 from shinuza/patch-1

Fix a collision with Qunit's "module" function
check for module.exports
Kill onreadystatechange handler after readyState 4

There's a bug in WebKit where if the execution is halted (through a debugger, 
for example), an xhr object can fire the readystatechange event (with 
readyState 4) multiple times (apparently, always 3 times). For reference, 
see:

* https://github.com/madrobby/zepto/pull/633

I'm also linking to 2 jsfiddles that illustrate the issue.
I was able to reproduce this behavior on Chrome 23 and mobile Safari on iOS 5 
(using remote debugging with an iPad) but not on (desktop) Safari 6.

Steps to reproduce with first jsfiddle:

1. Open Chrome
2. Allow pop-ups 
3. Go to http://jsfiddle.net/MeXvJ/
4. Close the pop-up
5. You'll get 3 sequential alert boxes 

Steps to reproduce with second jsfiddle:

1. Open Chrome
2. Open Developer Tools
3. Go to http://jsfiddle.net/44b3P/
4. Unpause script execution in the debugger
5. You'll get 3 sequential alert boxes

Both jQuery and Zepto already do something similar to what I'm proposing. The 
difference is that they both set the onreadystatechange handler to a no-op 
function. Not sure why.

* jQuery: https://github.com/jquery/jquery/blob/master/src/ajax/xhr.js
* Zepto: https://github.com/madrobby/zepto/blob/master/src/ajax.js
Merge pull request #93 from gabalafou/patch-1

Kill onreadystatechange handler after readyState 4
chrome bug fix
Make readystatechange handler a no-op on readyState 4

Setting onreadystatechange to undefined causes an error to pop up 
in IE8:
http://jsbin.com/ulitew/1/edit 

Setting it to null also seems to create problems in earlier IE's:
https://issues.jboss.org/browse/JBSEAM-1271

Since setting it to a no-op is what jQuery does, I assume that this
is probably the most browser-compatible technique.
Merge pull request #94 from gabalafou/patch-2

Make readystatechange handler a no-op on readyState 4
IE popup fixes
amd voodoo take 1,000,000
version bump for @0.6.4 release
fixed problem with 304 in jsonp for IE9