Merge pull request #217 from dgsan/main
This is the smash with blunt object fix for #215
This commit is contained in:
commit
7820e44b67
|
@ -91,7 +91,7 @@ AbstractClass.prototype._initProperties = function (data, applySetters) {
|
||||||
try {
|
try {
|
||||||
self.__data[attr] = JSON.parse(self.__data[attr] + '');
|
self.__data[attr] = JSON.parse(self.__data[attr] + '');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e.stack);
|
self.__data[attr] = String(self.__data[attr]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type.name === 'Array' || typeof type === 'object' && type.constructor.name === 'Array') {
|
if (type.name === 'Array' || typeof type === 'object' && type.constructor.name === 'Array') {
|
||||||
|
|
Loading…
Reference in New Issue