From 8fb38cf1e5f8db5e4285ae43a77b0ba432b51cc6 Mon Sep 17 00:00:00 2001 From: Joe George Date: Thu, 16 Oct 2014 14:42:31 -0400 Subject: ICE-5749 - Replace Promise with Ice.Promise in demos --- js/demo/ChatDemo/Client.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'js/demo/ChatDemo/Client.js') 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) -- cgit v1.2.3