Patent ID: 8862830

Claim:
A method for caching a data object, comprising: obtaining, with a processor of a computer, a copy of an original data object to a specified depth; caching the copy of the original data object to the specified depth with reference to the original data object in a prototype chain; receiving a change to a value of a property of the cached copy; creating a new property entry for the changed value of the property of the cached copy; setting a change flag to indicate that there is a changed value for the property; receiving a submit operation for the cached copy of the data object; and for the property of the cached copy, determining whether the value of the property has changed; in response to determining that the value of the property has changed, updating a value of a corresponding property of the original data object; and resetting the change flag to indicate that the value of the property of the cached copy is a same as the value of the corresponding property of the original data object.