diff --git a/lib/manager/v2/fileSystem/LockManager.js b/lib/manager/v2/fileSystem/LockManager.js index 9a41f36e..879f9131 100644 --- a/lib/manager/v2/fileSystem/LockManager.js +++ b/lib/manager/v2/fileSystem/LockManager.js @@ -4,7 +4,8 @@ var LocalLockManager = (function () { function LocalLockManager(serializedData) { this.locks = []; if (serializedData) - Object.defineProperties(this, serializedData); + for (var name_1 in serializedData) + this[name_1] = serializedData[name_1]; } LocalLockManager.prototype.getLocks = function (callback) { this.locks = this.locks.filter(function (lock) { return !lock.expired(); }); diff --git a/lib/manager/v2/fileSystem/PropertyManager.js b/lib/manager/v2/fileSystem/PropertyManager.js index dd15bb16..c1165273 100644 --- a/lib/manager/v2/fileSystem/PropertyManager.js +++ b/lib/manager/v2/fileSystem/PropertyManager.js @@ -5,7 +5,8 @@ var LocalPropertyManager = (function () { function LocalPropertyManager(serializedData) { this.properties = {}; if (serializedData) - Object.defineProperties(this, serializedData); + for (var name_1 in serializedData) + this[name_1] = serializedData[name_1]; } LocalPropertyManager.prototype.setProperty = function (name, value, attributes, callback) { this.properties[name] = { diff --git a/src/manager/v2/fileSystem/LockManager.ts b/src/manager/v2/fileSystem/LockManager.ts index 18766e3a..3d3d62c9 100644 --- a/src/manager/v2/fileSystem/LockManager.ts +++ b/src/manager/v2/fileSystem/LockManager.ts @@ -27,7 +27,8 @@ export class LocalLockManager implements ILockManager constructor(serializedData ?: any) { if(serializedData) - Object.defineProperties(this, serializedData as any); + for(const name in serializedData) + this[name] = serializedData[name]; } getLocks(callback : ReturnCallback) : void diff --git a/src/manager/v2/fileSystem/PropertyManager.ts b/src/manager/v2/fileSystem/PropertyManager.ts index 8f258ebe..a97b805a 100644 --- a/src/manager/v2/fileSystem/PropertyManager.ts +++ b/src/manager/v2/fileSystem/PropertyManager.ts @@ -34,7 +34,8 @@ export class LocalPropertyManager implements IPropertyManager constructor(serializedData ?: any) { if(serializedData) - Object.defineProperties(this, serializedData as any); + for(const name in serializedData) + this[name] = serializedData[name]; } setProperty(name : string, value : ResourcePropertyValue, attributes : PropertyAttributes, callback : SimpleCallback) : void