You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2011/07/05 15:31:14 UTC

svn commit: r1143054 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Author: lofwyr
Date: Tue Jul  5 13:31:14 2011
New Revision: 1143054

URL: http://svn.apache.org/viewvc?rev=1143054&view=rev
Log:
minor optimization

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=1143054&r1=1143053&r2=1143054&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Tue Jul  5 13:31:14 2011
@@ -936,8 +936,9 @@ var Tobago = {
     }
     hidden.value = ',';
     var firstPopupElement = null;
-    for (var i = 0; i < document.forms[0].elements.length; i++) {
-      var element = document.forms[0].elements[i];
+    var elements = document.forms[0].elements;
+    for (var i = 0; i < elements.length; i++) {
+      var element = elements[i];
       if (element.type != 'hidden' && !element.disabled) {
         if (element.id) {
           if (element.id.indexOf(id + ':') != 0) { // not starts with