diff options
Diffstat (limited to 'js/src/Ice/SocketOperation.js')
-rw-r--r-- | js/src/Ice/SocketOperation.js | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/js/src/Ice/SocketOperation.js b/js/src/Ice/SocketOperation.js index 6e45a494dcf..316e9043769 100644 --- a/js/src/Ice/SocketOperation.js +++ b/js/src/Ice/SocketOperation.js @@ -7,17 +7,12 @@ // // ********************************************************************** -(function(global){ - var Ice = global.Ice || {}; - - var SocketOperation = - { - None: 0, - Read: 1, - Write: 2, - Connect: 2 // Same as Write - }; - - Ice.SocketOperation = SocketOperation; - global.Ice = Ice; -}(typeof (global) === "undefined" ? window : global)); +var Ice = require("../Ice/ModuleRegistry").Ice; +Ice.SocketOperation = +{ + None: 0, + Read: 1, + Write: 2, + Connect: 2 // Same as Write +}; +module.exports.Ice = Ice; |