You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2010/11/26 18:59:59 UTC

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

Author: bommel
Date: Fri Nov 26 17:59:59 2010
New Revision: 1039485

URL: http://svn.apache.org/viewvc?rev=1039485&view=rev
Log:
(TOBAGO-943) Consolidation of the Tobago JavaScript files and css files

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=1039485&r1=1039484&r2=1039485&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 Fri Nov 26 17:59:59 2010
@@ -2476,9 +2476,8 @@ Tobago.Updater = {
           element.replaceWith(newElement);
         }
         try {
-          var updateScript;
-          eval('updateScript = ' + data.script);
-          updateScript();
+          eval('var updateScript = ' + data.script);
+          eval('updateScript();');
           if (typeof this.afterDoUpdateSuccess == 'function') {
             this.afterDoUpdateSuccess();
           }
@@ -2486,8 +2485,8 @@ Tobago.Updater = {
             xxx_tobagoInit(newElement);
           }
         } catch (e) {
-          // todo: improve exception handling
 ;;;          LOG.error('Error in doUpdate: ' + e);
+          throw e;
         }
         break;
       case Tobago.Updater.CODE_NOT_MODIFIED: