diff --git a/lib/abstract-class.js b/lib/abstract-class.js index 4c310504..d885ed83 100644 --- a/lib/abstract-class.js +++ b/lib/abstract-class.js @@ -91,7 +91,7 @@ AbstractClass.prototype._initProperties = function (data, applySetters) { try { self.__data[attr] = JSON.parse(self.__data[attr] + ''); } catch (e) { - console.log(e.stack); + self.__data[attr] = String(self.__data[attr]); } } if (type.name === 'Array' || typeof type === 'object' && type.constructor.name === 'Array') {