summaryrefslogtreecommitdiff
path: root/js/demo/ChatDemo/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/ChatDemo/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/ChatDemo/Client.js')
-rw-r--r--js/demo/ChatDemo/Client.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/demo/ChatDemo/Client.js b/js/demo/ChatDemo/Client.js
index a982a52da32..9c83c071150 100644
--- a/js/demo/ChatDemo/Client.js
+++ b/js/demo/ChatDemo/Client.js
@@ -9,7 +9,6 @@
(function(){
-var Promise = Ice.Promise;
var RouterPrx = Glacier2.RouterPrx;
var ChatRoomCallbackPrx = Chat.ChatRoomCallbackPrx;
var ChatSessionPrx = Chat.ChatSessionPrx;
@@ -159,7 +158,7 @@ var run = function(router, session)
// state. The completion could happen because the user signed out,
// or because there is an exception.
//
- var chat = new Promise();
+ var chat = new Ice.Promise();
//
// Get the session timeout and the router client category, then
// create the client object adapter.
@@ -167,7 +166,7 @@ var run = function(router, session)
// Use Ice.Promise.all to wait for the completion of all the
// calls.
//
- Promise.all(
+ Ice.Promise.all(
router.getSessionTimeout(),
router.getCategoryForClient(),
communicator.createObjectAdapterWithRouter("", router)
@@ -416,7 +415,7 @@ function setState(newState, error)
// First destroy the communicator if needed then do
// the screen transition.
//
- return Promise.try(
+ return Ice.Promise.try(
function()
{
if(communicator)