dist/jsonpatcherproxy.js
/**
    * Creates an instance of JSONPatcherProxy around your object of interest `root`.
    * @param {Object|Array} root - the object you want to wrap
    * @param {Boolean} [showDetachedWarning = true] - whether to log a warning when a detached sub-object is modified @see {@link https://github.com/Palindrom/JSONPatcherProxy#detached-objects}
    * @returns {JSONPatcherProxy}
    * @constructor
    */
Creates an instance of JSONPatcherProxy around your object of interest `root`.
Creates an instance of JSONPatcherProxy around your object of interest ` root ` .
function JSONPatcherProxy(root, showDetachedWarning) {
    this._isProxifyingTreeNow = false;
    this._isObserving = false;
    this._treeMetadataMap = new Map();
    this._parenthoodMap = new Map();
    if (typeof showDetachedWarning !== 'boolean') {
      showDetachedWarning = true;
    }
    this._showDetachedWarning = showDetachedWarning;
    this._originalRoot = root;
    this._cachedProxy = null;
    this._isRecording = false;
    this._userCallback;
    this._defaultCallback;
    this._patches;
  }
function JSONPatcherProxy ( root , showDetachedWarning ) { this . _isProxifyingTreeNow = false ; this . _isObserving = false ; this . _treeMetadataMap = new Map ( ) ; this . _parenthoodMap = new Map ( ) ; if ( typeof showDetachedWarning !== 'boolean' ) { showDetachedWarning = true ; } this . _showDetachedWarning = showDetachedWarning ; this . _originalRoot = root ; this . _cachedProxy = null ; this . _isRecording = false ; this . _userCallback ; this . _defaultCallback ; this . _patches ; }
Creates an instance of JSONPatcherProxy around your object of interest `root`.
Creates an instance of JSONPatcherProxy around your object of interest ` root ` .
// default to true