diff options
Diffstat (limited to 'js/src/Ice/Initialize.js')
-rw-r--r-- | js/src/Ice/Initialize.js | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/js/src/Ice/Initialize.js b/js/src/Ice/Initialize.js index 6d340ffc9d8..9d3f6b4cab7 100644 --- a/js/src/Ice/Initialize.js +++ b/js/src/Ice/Initialize.js @@ -21,20 +21,23 @@ const Protocol = Ice.Protocol; // // Ice.InitializationData // -Ice.InitializationData = function() +Ice.InitializationData = class { - this.properties = null; - this.logger = null; - this.valueFactoryManager = null; -}; + constructor() + { + this.properties = null; + this.logger = null; + this.valueFactoryManager = null; + } -Ice.InitializationData.prototype.clone = function() -{ - const r = new Ice.InitializationData(); - r.properties = this.properties; - r.logger = this.logger; - r.valueFactoryManager = this.valueFactoryManager; - return r; + clone() + { + const r = new Ice.InitializationData(); + r.properties = this.properties; + r.logger = this.logger; + r.valueFactoryManager = this.valueFactoryManager; + return r; + } }; // |