summaryrefslogtreecommitdiff
path: root/js/demo/Glacier2/chat/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/Glacier2/chat/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/Glacier2/chat/browser/Client.js')
-rw-r--r--js/demo/Glacier2/chat/browser/Client.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/demo/Glacier2/chat/browser/Client.js b/js/demo/Glacier2/chat/browser/Client.js
index 7e316897669..1f905448325 100644
--- a/js/demo/Glacier2/chat/browser/Client.js
+++ b/js/demo/Glacier2/chat/browser/Client.js
@@ -9,7 +9,6 @@
(function(){
-var Promise = Ice.Promise;
var RouterPrx = Glacier2.RouterPrx;
var ChatSessionPrx = Demo.ChatSessionPrx;
var ChatCallbackPrx = Demo.ChatCallbackPrx;
@@ -43,7 +42,7 @@ var signin = function()
{
var communicator;
var router;
- Promise.try(
+ Ice.Promise.try(
function()
{
state = State.Connecting;
@@ -148,7 +147,7 @@ var run = function(communicator, router, session)
// state. The completion could happen because the user signed out,
// or because an exception was raised.
//
- var chat = new Promise();
+ var chat = new Ice.Promise();
//
// Get the session timeout and the router client category, and
@@ -157,7 +156,7 @@ var run = function(communicator, 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)