diff options
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(); } // |