summaryrefslogtreecommitdiff
path: root/js/demo/Ice/hello/Client.js
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-09-02 14:22:34 +0200
committerJose <jose@zeroc.com>2014-09-02 14:22:34 +0200
commitfef794cdd1f8eb698fa3ccfe6f4cacba88030e9d (patch)
tree8e0c3c353dbbaa57d60a1da49c13b4153e918763 /js/demo/Ice/hello/Client.js
parentFix (ICE-3445) - consider not installing internal header files (diff)
downloadice-fef794cdd1f8eb698fa3ccfe6f4cacba88030e9d.tar.bz2
ice-fef794cdd1f8eb698fa3ccfe6f4cacba88030e9d.tar.xz
ice-fef794cdd1f8eb698fa3ccfe6f4cacba88030e9d.zip
Fixed (ICE-5654) - Update JS mapping to not use global types in NodeJS
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);
});
-}());