summaryrefslogtreecommitdiff
path: root/js/src/Ice/ObjectFactory.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/Ice/ObjectFactory.js')
-rw-r--r--js/src/Ice/ObjectFactory.js31
1 files changed, 12 insertions, 19 deletions
diff --git a/js/src/Ice/ObjectFactory.js b/js/src/Ice/ObjectFactory.js
index 2f178c4c73c..c21ff3c2884 100644
--- a/js/src/Ice/ObjectFactory.js
+++ b/js/src/Ice/ObjectFactory.js
@@ -7,22 +7,15 @@
//
// **********************************************************************
-(function(global){
- var Ice = global.Ice || {};
-
- require("Ice/Class");
-
- var ObjectFactory = Ice.Class({
- create: function(type)
- {
- throw new Error("not implemented");
- },
- destroy: function()
- {
- throw new Error("not implemented");
- }
- });
-
- Ice.ObjectFactory = ObjectFactory;
- global.Ice = Ice;
-}(typeof (global) === "undefined" ? window : global));
+var Ice = require("../Ice/Class").Ice;
+Ice.ObjectFactory = Ice.Class({
+ create: function(type)
+ {
+ throw new Error("not implemented");
+ },
+ destroy: function()
+ {
+ throw new Error("not implemented");
+ }
+});
+module.exports.Ice = Ice;