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.js17
1 files changed, 11 insertions, 6 deletions
diff --git a/js/src/Ice/ObjectFactory.js b/js/src/Ice/ObjectFactory.js
index ad372d599de..0287a74cfc9 100644
--- a/js/src/Ice/ObjectFactory.js
+++ b/js/src/Ice/ObjectFactory.js
@@ -7,15 +7,20 @@
//
// **********************************************************************
-var Ice = require("../Ice/Class").Ice;
-Ice.ObjectFactory = Ice.Class({
- create: function(type)
+const Ice = require("../Ice/ModuleRegistry").Ice;
+
+class ObjectFactory
+{
+ create(type)
{
throw new Error("not implemented");
- },
- destroy: function()
+ }
+
+ destroy()
{
throw new Error("not implemented");
}
-});
+}
+
+Ice.ObjectFactory = ObjectFactory;
module.exports.Ice = Ice;