diff options
author | Benoit Foucher <benoit@zeroc.com> | 2015-03-10 12:12:10 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2015-03-10 12:12:10 +0100 |
commit | c6ca68d97aa5bbc2a172e3e35171b5452657fa22 (patch) | |
tree | 46edcca4c8e313285a205bf6fad7c56c452c0cc0 /js/demo/Ice/hello/browser/Client.js | |
parent | Minor JS style fixes (diff) | |
download | ice-c6ca68d97aa5bbc2a172e3e35171b5452657fa22.tar.bz2 ice-c6ca68d97aa5bbc2a172e3e35171b5452657fa22.tar.xz ice-c6ca68d97aa5bbc2a172e3e35171b5452657fa22.zip |
ICE-6170 - fixed behavior of batch requests
Diffstat (limited to 'js/demo/Ice/hello/browser/Client.js')
-rw-r--r-- | js/demo/Ice/hello/browser/Client.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/js/demo/Ice/hello/browser/Client.js b/js/demo/Ice/hello/browser/Client.js index 71355056173..56b9422f6b2 100644 --- a/js/demo/Ice/hello/browser/Client.js +++ b/js/demo/Ice/hello/browser/Client.js @@ -60,6 +60,13 @@ function updateProxy() proxy = proxy.ice_batchOneway().ice_secure(true); } helloPrx = Demo.HelloPrx.uncheckedCast(proxy); + + // + // The batch requests associated to the proxy are lost when we + // update the proxy. + // + batch = 0; + $("#flush").addClass("disabled").off("click"); } // @@ -84,7 +91,7 @@ function flush() { batch = 0; setState(State.FlushBatchRequests); - return communicator.flushBatchRequests(); + return helloPrx.ice_flushBatchRequests(); } // |