test/HMR/public/dist/bundle.js
/**
         * beforeChange
         * @description This method accepts a function will be invoked before changes.
         * @param proxy {Proxy} the ES6 Proxy returned by the create() method.
         * @param callback {Function} will be invoked before every change is made to the proxy, if it returns false no changes will be made.
         */
beforeChange
@description This method accepts a function will be invoked before changes.
@param proxy {Proxy} the ES6 Proxy returned by the create() method.
@param callback {Function} will be invoked before every change is made to the proxy, if it returns false no changes will be made.
beforeChange @description This method accepts a function will be invoked before changes . @param proxy { Proxy } the ES6 Proxy returned by the create () method . @param callback { Function } will be invoked before every change is made to the proxy if it returns false no changes will be made .
function beforeChange(proxy, callback) {
            if (typeof callback !== 'function') throw new Error('Callback function is required');
            var i = observables.length;
            var foundMatch = false;
            while (i--) {
                if (observables[i].parentProxy === proxy) {
                    observables[i].beforeChange = callback;
                    foundMatch = true;
                    break;
                }
            }
            if (foundMatch === false) throw new Error('DOZ -- matching proxy not found.');
        }
function beforeChange ( proxy , callback ) { if ( typeof callback !== 'function' ) throw new Error ( 'Callback function is required' ) ; var i = observables . length ; var foundMatch = false ; while ( i -- ) { if ( observables [ i ] . parentProxy === proxy ) { observables [ i ] . beforeChange = callback ; foundMatch = true ; break ; } } if ( foundMatch === false ) throw new Error ( 'DOZ -- matching proxy not found.' ) ; }
beforeChange
 @description This method accepts a function will be invoked before changes.
beforeChange @description This method accepts a function will be invoked before changes .