aboutsummaryrefslogtreecommitdiffstats
path: root/src/Browser.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Browser.js')
-rw-r--r--src/Browser.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Browser.js b/src/Browser.js
index d2e8608d..6ec083fa 100644
--- a/src/Browser.js
+++ b/src/Browser.js
@@ -53,6 +53,10 @@ Browser.prototype = {
},
xhr: function(method, url, post, callback){
+ if (isFunction(post)) {
+ callback = post;
+ post = null;
+ }
var xhr = new this.XHR();
xhr.open(method, url, true);
xhr.onreadystatechange = function() {