xavierlacot / joli.js

joli.js is an Activerecord-like javascript ORM, particularly suited for being used in the Appcelerator Titanium Mobile framework.
MIT License
267 stars 60 forks source link

fromArray bug #47

Open krsw9215 opened 9 years ago

krsw9215 commented 9 years ago

L814 in fromArray function,

if ((this._originalData && !this._originalData[colName]) || this.isNew()) { this._originalData[colName] = data[colName]; }

it will be error when this._originalData == null and this.isNew() returned true.

apocalypsebg commented 9 years ago

@krsw9215 Did you fix it?