Provides reusable utility functions at RemoteStorage.util
RemoteStorage.Util | Provides reusable utility functions at RemoteStorage.util |
Functions | |
fixArrayBuffers | Takes an object and its copy as produced by the _deepClone function below, and finds and fixes any ArrayBuffers that were cast to `{}` instead of being cloned to new ArrayBuffers with the same content. |
function fixArrayBuffers( srcObj, dstObj )
Takes an object and its copy as produced by the _deepClone function below, and finds and fixes any ArrayBuffers that were cast to `{}` instead of being cloned to new ArrayBuffers with the same content.
It recurses into sub-objects, but skips arrays if they occur.
Takes an object and its copy as produced by the _deepClone function below, and finds and fixes any ArrayBuffers that were cast to `{}` instead of being cloned to new ArrayBuffers with the same content.
function fixArrayBuffers( srcObj, dstObj )