Commits

tm_jee  committed cfbd657

WW-1426
- Tab panel generates js error on firefox 1.5 on first load

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2857573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits f5f7ad9

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/static/CommonFunctions.js

             //  so don't try to call a method that doesn't exist.  This is only
             //  for IE, and the workaround is to use a <ww:action name="" executeResults="true" />
             //  as the content of the DIV.
-            if (rel.bind)
-                rel.bind();
+            if (rel) { // prevent error on first load where rel might be undefined
+           		if (rel.bind) {
+               		rel.bind();
+               	}
+             }
         }
     }