diff options
Diffstat (limited to 'js/test/Ice/operations/Twoways.js')
-rw-r--r-- | js/test/Ice/operations/Twoways.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/js/test/Ice/operations/Twoways.js b/js/test/Ice/operations/Twoways.js index 693a9cd4a54..3b025feb56d 100644 --- a/js/test/Ice/operations/Twoways.js +++ b/js/test/Ice/operations/Twoways.js @@ -7,8 +7,10 @@ // // ********************************************************************** -(function(global){ - var Ice = global.Ice; +(function(module, require, exports) +{ + var Ice = require("icejs").Ice; + var Test = require("Test").Test; var run = function(communicator, prx, Test, bidir) { @@ -844,5 +846,9 @@ return p; }; - global.Twoways = { run: run }; -}(typeof (global) === "undefined" ? window : global)); + exports.Twoways = { run: run }; +} +(typeof(global) !== "undefined" && typeof(global.process) !== "undefined" ? module : undefined, + typeof(global) !== "undefined" && typeof(global.process) !== "undefined" ? require : window.Ice.__require, + typeof(global) !== "undefined" && typeof(global.process) !== "undefined" ? exports : window)); + |