summaryrefslogtreecommitdiff
path: root/js/demo/Ice/bidir/browser/Client.js
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2014-10-16 14:42:31 -0400
committerJoe George <joe@zeroc.com>2014-10-16 14:42:31 -0400
commit8fb38cf1e5f8db5e4285ae43a77b0ba432b51cc6 (patch)
treedb3e270275f650bdc364987913a741a949833bba /js/demo/Ice/bidir/browser/Client.js
parentadding php.ini (diff)
downloadice-8fb38cf1e5f8db5e4285ae43a77b0ba432b51cc6.tar.bz2
ice-8fb38cf1e5f8db5e4285ae43a77b0ba432b51cc6.tar.xz
ice-8fb38cf1e5f8db5e4285ae43a77b0ba432b51cc6.zip
ICE-5749 - Replace Promise with Ice.Promise in demos
Diffstat (limited to 'js/demo/Ice/bidir/browser/Client.js')
-rw-r--r--js/demo/Ice/bidir/browser/Client.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/js/demo/Ice/bidir/browser/Client.js b/js/demo/Ice/bidir/browser/Client.js
index dd0b340d8d0..ca44be729be 100644
--- a/js/demo/Ice/bidir/browser/Client.js
+++ b/js/demo/Ice/bidir/browser/Client.js
@@ -9,7 +9,6 @@
(function(){
-var Promise = Ice.Promise;
var CallbackSenderPrx = Demo.CallbackSenderPrx;
//
@@ -44,7 +43,7 @@ var start = function()
//
var hostname = document.location.hostname || "127.0.0.1";
var proxy = communicator.stringToProxy("sender:ws -p 10002 -h " + hostname);
-
+
//
// Down-cast the proxy to the Demo.CallbackSender interface.
//
@@ -62,13 +61,13 @@ var start = function()
// the object adapter.
//
var r = adapter.addWithUUID(new CallbackReceiverI());
-
+
//
// Set the connection adapter and remember the connection.
//
connection = proxy.ice_getCachedConnection();
connection.setAdapter(adapter);
-
+
//
// Register the client with the bidir server.
//
@@ -82,9 +81,9 @@ var stop = function()
//
// Close the connection, the server will unregister the client
// when it tries to invoke on the bi-dir proxy.
- //
+ //
return connection.close(false);
-}
+};
//
// Setup button click handlers
@@ -95,7 +94,7 @@ $("#start").click(
if(isDisconnected())
{
setState(State.Connecting);
- Promise.try(
+ Ice.Promise.try(
function()
{
return start().then(function()
@@ -120,7 +119,7 @@ $("#stop").click(
if(isConnected())
{
setState(State.Disconnecting);
- Promise.try(
+ Ice.Promise.try(
function()
{
return stop();