RemoteStorage.Util

Provides reusable utility functions at RemoteStorage.util

Summary
RemoteStorage.UtilProvides reusable utility functions at RemoteStorage.util
Functions
fixArrayBuffersTakes 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.

Functions

fixArrayBuffers

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.

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.
Close