Author: mgrigorov
Date: Thu Aug 18 18:51:55 2011
New Revision: 1159354
URL: http://svn.apache.org/viewvc?rev=1159354&view=rev
Log:
WICKET-3937 Improve AJAX FunctionsExecutor robustness with try/catch
Modified:
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
Modified:
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
URL:
http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js?rev=1159354&r1=1159353&r2=1159354&view=diff
==============================================================================
---
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
(original)
+++
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
Thu Aug 18 18:51:55 2011
@@ -144,7 +144,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++;