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 <[email protected]>
Authored: Tue Jul 24 15:16:30 2012 +0300
Committer: Martin Tzvetanov Grigorov <[email protected]>
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];
+                               }
                        }
                }
        };

Reply via email to