Merge pull request #217 from dgsan/main

This is the smash with blunt object fix for #215
This commit is contained in:
Anatoliy Chakkaev 2013-03-05 11:46:20 -08:00
commit 7820e44b67
1 changed files with 1 additions and 1 deletions

View File

@ -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') {