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/06/08 10:48:56 UTC

svn commit: r952572 - /myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js

Author: werpu
Date: Tue Jun  8 08:48:55 2010
New Revision: 952572

URL: http://svn.apache.org/viewvc?rev=952572&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-2745
ok introduced another small bug that way, fixup for this bug, sorry for that, the fixup fixes a bug where the ie gets the value evaluated twice

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

Modified: myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js?rev=952572&r1=952571&r2=952572&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js (original)
+++ myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js Tue Jun  8 08:48:55 2010
@@ -61,10 +61,10 @@ if (!myfaces._impl.core._Runtime) {
                 //window extension with undefined behavior on our necks
                 //wndow.execScript does not return anything
                 var ret = window.execScript(code);
-                if (ret == "null" /*htmlunit bug*/) {
+                if ('undefined' != typeof ret && ret == "null" /*htmlunit bug*/) {
                     return null;
                 }
-
+                return ret;
             } else if (window.eval) {
 
                 //fix for a Mozilla bug, Mozilla prevents, that the window is properly applied