myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwald...@apache.org
Subject svn commit: r549607 - /myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js
Date Thu, 21 Jun 2007 20:45:57 GMT
Author: jwaldman
Date: Thu Jun 21 13:45:57 2007
New Revision: 549607

URL: http://svn.apache.org/viewvc?view=rev&rev=549607
Log:
TRINIDAD-71 javascript error in sortable table when click on header
Check for null in RequestQueue.js to avoid this javascript error

Modified:
    myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js

Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js?view=diff&rev=549607&r1=549606&r2=549607
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js
(original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js
Thu Jun 21 13:45:57 2007
@@ -263,18 +263,21 @@
   for (var key in formParams)
   {
     var paramValue = formParams[key];
-    // If it's an array...
-    if (paramValue.join)
+    if (paramValue != null)
     {
-      var array = paramValue;
-      for(var i=0; i < array.length; i++)
+      // If it's an array...
+      if (paramValue.join)
       {
-        content = TrRequestQueue._appendUrlFormEncoded(content, key, array[i]);
+        var array = paramValue;
+        for(var i=0; i < array.length; i++)
+        {
+          content = TrRequestQueue._appendUrlFormEncoded(content, key, array[i]);
+        }
+      }
+      else
+      {
+        content = TrRequestQueue._appendUrlFormEncoded(content, key, paramValue);
       }
-    }
-    else
-    {
-      content = TrRequestQueue._appendUrlFormEncoded(content, key, paramValue);
     }
   }
   return content;



Mime
View raw message