summaryrefslogtreecommitdiff
path: root/js/demo/Ice/hello/Client.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/demo/Ice/hello/Client.js')
-rw-r--r--js/demo/Ice/hello/Client.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/js/demo/Ice/hello/Client.js b/js/demo/Ice/hello/Client.js
index 2c08c7cdd12..d1a446ce93f 100644
--- a/js/demo/Ice/hello/Client.js
+++ b/js/demo/Ice/hello/Client.js
@@ -6,11 +6,9 @@
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
-
-(function(){
-require("Ice");
-require("./Hello");
+var Ice = require("icejs").Ice;
+var Demo = require("./Hello").Demo;
function menu()
{
@@ -192,4 +190,3 @@ Ice.Promise.try(
console.log(ex.toString());
process.exit(1);
});
-}());