Skip to content

Commit

Permalink
fromArray(): Always ensure _originalData is available
Browse files Browse the repository at this point in the history
  • Loading branch information
nicjansma committed May 13, 2015
1 parent f6a30f5 commit 6c23fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion joli.js
Expand Up @@ -794,8 +794,8 @@ var joliCreator = function() {
fromArray: function(data) {
var wasNew = this.isNew ? this.isNew() : true;

this._originalData = this._originalData || {};
if (typeof data.id !== 'undefined') {
this._originalData = this._originalData || {};
this.isNew = function() {
return false;
};
Expand Down

0 comments on commit 6c23fa9

Please sign in to comment.