[Checkins] SVN: p01.xmlhttp/trunk/src/p01/xmlhttp/xmlhttp.js fix
iteration issue
Roger Ineichen
roger at projekt01.ch
Mon May 21 06:58:09 EDT 2007
Log message for revision 75857:
fix iteration issue
Different libraries extend the Array with the indexOf method,
this makes it not possible to use simple iteration over
arrays anymore.
Changed:
U p01.xmlhttp/trunk/src/p01/xmlhttp/xmlhttp.js
-=-
Modified: p01.xmlhttp/trunk/src/p01/xmlhttp/xmlhttp.js
===================================================================
--- p01.xmlhttp/trunk/src/p01/xmlhttp/xmlhttp.js 2007-05-21 10:56:07 UTC (rev 75856)
+++ p01.xmlhttp/trunk/src/p01/xmlhttp/xmlhttp.js 2007-05-21 10:58:09 UTC (rev 75857)
@@ -150,8 +150,10 @@
try {
var args = null;
- for (var i in this.parameters) {
- if (this.argString.length>0) { this.argString += "&"; }
+ for ( var i = 0; i < this.parameters.length; i++ ) {
+ if (this.argString.length>0) {
+ this.argString += "&";
+ }
this.argString += encodeURIComponent(i) + "=" + encodeURIComponent(this.parameters[i]);
}
if (this.method == "GET") {
More information about the Checkins
mailing list