svn commit r16091 - trunk/wsf/javascript/rhino/e4ximpl/src/org/wso2/javascript/xmlimpl

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

svn commit r16091 - trunk/wsf/javascript/rhino/e4ximpl/src/org/wso2/javascript/xmlimpl

svn-9
Author: keith
Date: Thu Apr 24 01:19:50 2008
New Revision: 16091

Log:

Fixing an issue with hasComplexContent


Modified:
   trunk/wsf/javascript/rhino/e4ximpl/src/org/wso2/javascript/xmlimpl/XMLList.java

Modified: trunk/wsf/javascript/rhino/e4ximpl/src/org/wso2/javascript/xmlimpl/XMLList.java
==============================================================================
--- trunk/wsf/javascript/rhino/e4ximpl/src/org/wso2/javascript/xmlimpl/XMLList.java (original)
+++ trunk/wsf/javascript/rhino/e4ximpl/src/org/wso2/javascript/xmlimpl/XMLList.java Thu Apr 24 01:19:50 2008
@@ -459,9 +459,11 @@
             if (length() == 0) {
                 return getFromAxiomNodeList(0).hasComplexContent();
             } else {
-                for (int i = 0; i < length(); i++)
-                    if (((AxiomNode) _axiomNodeList.get(i)).isElement())
-                        return true;
+                for (int i = 0; i < length(); i++) {
+                    if (!((AxiomNode) _axiomNodeList.get(i)).isElement())
+                        return false;
+                }
+                return true;
             }
         }
         return false;

_______________________________________________
Wsf-javascript-dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/wsf-javascript-dev
Loading...