summaryrefslogtreecommitdiff
path: root/js/src/Ice/ObjectFactory.js
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-08-19 21:25:18 +0200
committerJose <jose@zeroc.com>2016-08-19 21:25:18 +0200
commitc8d32e04873be7938915c606027c84c8ab832f6b (patch)
treef862751cfaddcf5bb7b82a7c04a299d471f948d4 /js/src/Ice/ObjectFactory.js
parentFix ICE-7278 (diff)
downloadice-c8d32e04873be7938915c606027c84c8ab832f6b.tar.bz2
ice-c8d32e04873be7938915c606027c84c8ab832f6b.tar.xz
ice-c8d32e04873be7938915c606027c84c8ab832f6b.zip
ES6 mapping updates
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;