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/04 19:03:27 UTC

svn commit: r1142740 - /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: Mon Jul  4 17:03:26 2011
New Revision: 1142740

URL: http://svn.apache.org/viewvc?rev=1142740&view=rev
Log:
using a local variable instead of a global

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=1142740&r1=1142739&r2=1142740&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 Mon Jul  4 17:03:26 2011
@@ -493,16 +493,13 @@ var Tobago = {
   /**
    * Submitting the page with specified actionId.
    * options.transition
-   * options.focus
    * options.target
+   * options.focus
    */
   submitAction: function(source, actionId, options) {
     options = options || {};
-    if (options.transition === undefined || options.transition == null) {
-      transition = true;
-    } else {
-      transition = options.transition;
-    }
+
+    var transition = options.transition === undefined || options.transition == null || options.transition;
 
     if (options.focus) {
       var lastFocusId = this.createInput('hidden', this.page.id + this.SUB_COMPONENT_SEP + 'lastFocusId', options.focus);