Return xhr request object from get and post.
This commit is contained in:
parent
0694073b70
commit
5e9b7e2dd0
1 changed files with 2 additions and 0 deletions
|
@ -136,6 +136,7 @@ function get(url, callback)
|
|||
{
|
||||
request = common._request("GET", url, callback);
|
||||
request.send();
|
||||
return request;
|
||||
}
|
||||
|
||||
common.post =
|
||||
|
@ -146,6 +147,7 @@ function post(url, data, callback)
|
|||
*/
|
||||
request = common._request("POST", url, callback);
|
||||
request.send(data);
|
||||
return request;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in a new issue