-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Description
Currently only additions and changes appear in the diff. I think it would be convenient and logical to treat removed attributes like attributes that were set to undefined. Possibly add a second loop roughly like this? (untested!)
var refKeys = Object.keys(ref);
var refKeysLength = refKeys.length;
var hasOwnProperty = Object.prototype.hasOwnProperty;
for (u = 0;u < refKeysLength;u++) {
key = refKeys[u];
if (!hasOwnProperty.call(c, key))
diff[key] = undefined;
}
jankcat, LinuCC and pstanton
Metadata
Metadata
Assignees
Labels
No labels