diff options
Diffstat (limited to 'js/src/Ice/Address.js')
-rw-r--r-- | js/src/Ice/Address.js | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/js/src/Ice/Address.js b/js/src/Ice/Address.js index cfeeb2149c1..5c140653909 100644 --- a/js/src/Ice/Address.js +++ b/js/src/Ice/Address.js @@ -6,17 +6,12 @@ // ICE_LICENSE file included in this distribution. // // ********************************************************************** - -(function(global){ - var Ice = global.Ice || {}; - - var Address = function(host, port) - { - this.host = host; - this.port = port; - }; - Ice.Address = Address; - - global.Ice = Ice; -}(typeof (global) === "undefined" ? window : global)); + +var Ice = require("../Ice/ModuleRegistry").Ice; +Ice.Address = function(host, port) +{ + this.host = host; + this.port = port; +}; +module.exports.Ice = Ice; |