Author: bdotte
Date: Tue Jul 20 15:21:34 2010
New Revision: 965876

URL: http://svn.apache.org/viewvc?rev=965876&view=rev
Log:
TAP5-1210: Prevent NPE in Internet Explorer during MultiZone update with a Form

Modified:
    
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js

Modified: 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js?rev=965876&r1=965875&r2=965876&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
 Tue Jul 20 15:21:34 2010
@@ -639,11 +639,13 @@ var Tapestry = {
                if (attrs) {
                        var l = attrs.length, i, name;
                        for (i = 0; i < l; i++) {
-                               name = attrs[i].name;
-                               /* Looking for onclick, etc. */
-                               if (typeof element[name] == 'function') {
-                                       element[name] = null;
-                               }
+                if (attrs[i]) {
+                    name = attrs[i].name;
+                    /* Looking for onclick, etc. */
+                    if (typeof element[name] == 'function') {
+                        element[name] = null;
+                    }
+                }
                        }
                }
 


Reply via email to