summaryrefslogtreecommitdiff
path: root/js/src/Ice/OptionalFormat.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/Ice/OptionalFormat.js')
-rw-r--r--js/src/Ice/OptionalFormat.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/js/src/Ice/OptionalFormat.js b/js/src/Ice/OptionalFormat.js
index 6e3f866ee66..cd884d7277b 100644
--- a/js/src/Ice/OptionalFormat.js
+++ b/js/src/Ice/OptionalFormat.js
@@ -7,13 +7,6 @@
//
// **********************************************************************
-(function(global){
- require("Ice/EnumBase");
-
- var Ice = global.Ice || {};
-
- Ice.OptionalFormat = Slice.defineEnum(
- {'F1':0, 'F2':1, 'F4':2, 'F8':3, 'Size':4, 'VSize':5, 'FSize':6, 'Class':7});
-
- global.Ice = Ice;
-}(typeof (global) === "undefined" ? window : global));
+var Ice = require("../Ice/EnumBase").Ice;
+Ice.OptionalFormat = Ice.Slice.defineEnum({'F1':0, 'F2':1, 'F4':2, 'F8':3, 'Size':4, 'VSize':5, 'FSize':6, 'Class':7});
+module.exports.Ice = Ice;