Author: hlship
Date: Wed Oct 19 17:04:51 2011
New Revision: 1186341

URL: http://svn.apache.org/viewvc?rev=1186341&view=rev
Log:
TAP5-1706: JS syntax error in Tapestry.ajaxRequest() when Ajax fails

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=1186341&r1=1186340&r2=1186341&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
 Wed Oct 19 17:04:51 2011
@@ -445,7 +445,7 @@ var Tapestry = {
                      * to mean the server didn't respond.
                      */
                     if (!response.getStatus() || !response.request.success()) {
-                        finalOptions.onFailure.call(this, response);
+                        finalOptions.get('onFailure').call(this, response);
                         return;
                     }
 
@@ -453,7 +453,7 @@ var Tapestry = {
                         /* Re-invoke the success handler, capturing any 
exceptions. */
                         successHandler.call(this, response, jsonResponse);
                     } catch (e) {
-                        finalOptions.onException.call(this, ajaxRequest, e);
+                        finalOptions.get('onException').call(this, response);
                     }
                 }
             });


Reply via email to