myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r931332 - /myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Utils.js
Date Tue, 06 Apr 2010 21:11:05 GMT
Author: werpu
Date: Tue Apr  6 21:11:04 2010
New Revision: 931332

URL: http://svn.apache.org/viewvc?rev=931332&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-2599
introduced a bug there, sorry



Modified:
    myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Utils.js

Modified: myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Utils.js
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Utils.js?rev=931332&r1=931331&r2=931332&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Utils.js
(original)
+++ myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Utils.js
Tue Apr  6 21:11:04 2010
@@ -293,10 +293,7 @@ if (!myfaces._impl._util._LangUtils.exis
     myfaces._impl._util._Utils.findHtmlItemFromFragment = function(fragment, itemId) {
         if (fragment.childNodes == null)
             return null;
-        //just one element, we are clear to replace (in case of the body replacement we replace
only the body)
-        if (fragment.childNodes.length == 1) {
-            return fragment.childNodes[0];    
-        }
+        
         for (var i = 0; i < fragment.childNodes.length; i++) {
             var c = fragment.childNodes[i];
             if (c.id == itemId)



Mime
View raw message