You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2012/07/24 14:46:19 UTC

[2/2] git commit: WICKET-4668 Ajax responses for QUEUE and DROP type channels are not guaranteed to be processed in the order of the requests

WICKET-4668 Ajax responses for QUEUE and DROP type channels are not guaranteed to be processed in the order of the requests

Remove the channel of the ChannelManager's list if it is not busy after channel.done().


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/3b0ccc9c
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/3b0ccc9c
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/3b0ccc9c

Branch: refs/heads/master
Commit: 3b0ccc9c40c88fbc96d8d69b23007a18f6e53559
Parents: 9ba7873
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Tue Jul 24 15:16:30 2012 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Tue Jul 24 15:16:30 2012 +0300

----------------------------------------------------------------------
 .../wicket/ajax/res/js/wicket-ajax-jquery.js       |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/3b0ccc9c/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
index 3206685..64ac521 100644
--- a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
+++ b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
@@ -304,6 +304,9 @@
 			var c = this.channels[parsed.name];
 			if (!isUndef(c)) {
 				c.done();
+				if (!c.busy) {
+					delete this.channels[parsed.name];
+				}
 			}
 		}
 	};