Skip to content

Commit

Permalink
automatically setting dirty property
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismelman committed Oct 15, 2012
1 parent 855c6c0 commit b173e5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ persistence.get = function(arg1, arg2) {
// setterCallback
var oldValue = that._data[f];
if(oldValue !== val || (oldValue && val && oldValue.getTime && val.getTime)) { // Don't mark properties as dirty and trigger events unnecessarily
if(f !== "dirty") {
that.dirty = true;
}
that._data[f] = val;
that._dirtyProperties[f] = oldValue;
that.triggerEvent('set', that, f, val);
Expand Down

0 comments on commit b173e5b

Please sign in to comment.