Update of /cvsroot/qooxdoo/qooxdoo/source/script/transport
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1592/source/script/transport
Modified Files:
Tag: renderer
QxRequest.js
Log Message:
Used string constants; fixed typo.
Index: QxRequest.js
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxRequest.js,v
retrieving revision 1.1.2.14
retrieving revision 1.1.2.15
diff -u -d -r1.1.2.14 -r1.1.2.15
--- QxRequest.js 20 Jan 2006 14:42:18 -0000 1.1.2.14
+++ QxRequest.js 20 Jan 2006 17:46:26 -0000 1.1.2.15
@@ -50,7 +50,17 @@
*/
QxRequest.addProperty({ name : "url", type : QxConst.TYPEOF_STRING });
-QxRequest.addProperty({ name : "method", type : QxConst.TYPEOF_STRING, possibleValues : [ "GET", "POST", "PUT", "HEAD", "DELETE" ], defaultValue : "POST" });
+QxRequest.addProperty(
+{
+ name : "method",
+ type : QxConst.TYPEOF_STRING,
+ possibleValues : [
+ QxConst.METHOD_GET, QxConst.METHOD_POST,
+ QxConst.METHOD_PUT, QxConst.METHOD_HEAD,
+ QxConst.METHOD_DELETE
+ ],
+ defaultValue : QxConst.METHOD_POST
+});
QxRequest.addProperty({ name : "asynchronous", type : QxConst.TYPEOF_BOOLEAN, defaultValue : true });
QxRequest.addProperty({ name : "data", type : QxConst.TYPEOF_STRING });
QxRequest.addProperty({ name : "username", type : QxConst.TYPEOF_STRING });
@@ -126,7 +136,7 @@
return this.getState() === QxConst.REQUEST_STATE_SENDING;
};
-proto.isLoading = function() {
+proto.isReceiving = function() {
return this.getState() === QxConst.REQUEST_STATE_RECEIVING;
};
|