You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2010/04/06 23:11:05 UTC

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

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)