projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d24677e
)
tests/soup.js
author
Alan Knowles
<alan@roojs.com>
Sun, 27 May 2012 07:56:21 +0000
(15:56 +0800)
committer
Alan Knowles
<alan@roojs.com>
Sun, 27 May 2012 07:56:21 +0000
(15:56 +0800)
tests/soup.js
patch
|
blob
|
history
diff --git
a/tests/soup.js
b/tests/soup.js
index
c3a6897
..
41e2bdc
100644
(file)
--- a/
tests/soup.js
+++ b/
tests/soup.js
@@
-105,7
+105,17
@@
XObject.extend(XMLHttpRequest,{
send : function(data)
{
this._message.set_request('application/x-www-form-urlencoded', Soup.MemoryUse.COPY, data, data.length)
send : function(data)
{
this._message.set_request('application/x-www-form-urlencoded', Soup.MemoryUse.COPY, data, data.length)
- _this.session.send_message(this._message);
+
+ if (this._async) {
+ this._session.queue_message(this._message, function() {
+ // got some data... fire some evetns.
+ })
+
+ }
+ var status = this._session.send_message(this._message);
+ this.responseText = msg.response_body.data;
+ this.status = 4;
+ return status;
},
abort : function()
},
abort : function()