Author: mgrigorov
Date: Thu Aug 18 18:53:33 2011
New Revision: 1159356

URL: http://svn.apache.org/viewvc?rev=1159356&view=rev
Log:
WICKET-3937 Improve AJAX FunctionsExecutor robustness with try/catch


Modified:
    
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js

Modified: 
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js?rev=1159356&r1=1159355&r2=1159356&view=diff
==============================================================================
--- 
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
 (original)
+++ 
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
 Thu Aug 18 18:53:33 2011
@@ -148,7 +148,13 @@ Wicket.FunctionsExecuter.prototype = {
                if (this.current < this.functions.length) {
                        var f = this.functions[this.current];
                        var run = function() {
-                               f(this.notify.bind(this));
+                               try {
+                                       f(this.notify.bind(this));
+                               }
+                               catch (e) {
+                                       
Wicket.Log.error("Wicket.FunctionsExecuter.processNext: " + e);
+                                       this.notify();
+                               }
                        }.bind(this);
                        this.current++;
                                                


Reply via email to