Author: mrdon
Date: Sat Dec 30 22:00:44 2006
New Revision: 491394

URL: http://svn.apache.org/viewvc?view=rev&rev=491394
Log:
Added better handling of json arrays for IE
WW-1583

Modified:
    
struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js

Modified: 
struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js?view=diff&rev=491394&r1=491393&r2=491394
==============================================================================
--- 
struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js
 (original)
+++ 
struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/dojo/src/widget/ComboBox.js
 Sat Dec 30 22:00:44 2006
@@ -144,6 +144,10 @@
                        searchStr = searchStr.toLowerCase();
                }
                for(var x=0; x<this.data.length; x++){
+            if(!this.data[x]) {
+                //needed for IE
+                continue;
+            }
                        if((!ignoreLimit)&&(ret.length >= this.searchLimit)){
                                break;
                        }


Reply via email to