bump 0.4.2

This commit is contained in:
qingwei.li
2016-11-28 12:33:54 +08:00
parent 93ddf08615
commit f3853d8e7f
2 changed files with 9 additions and 3 deletions
+8 -2
View File
@@ -13,8 +13,14 @@ var ajax = function (url, options) {
xhr.send();
return {
then: function (cb) { return xhr.addEventListener('load', cb); },
catch: function (cb) { return xhr.addEventListener('error', cb); }
then: function (cb) {
xhr.addEventListener('load', cb);
return this
},
catch: function (cb) {
xhr.addEventListener('error', cb);
return this
}
}
};
+1 -1
View File
File diff suppressed because one or more lines are too long