frontend/src/modules/common/utils.js
/**
   * Map the observables (internal state) to getter/setter of target
   * such that it can easily operate on its private observable state
   * without caring about the values actually being observables
   *
   * @param state
   * @param target
   */
Map the observables (internal state) to getter/setter of target
such that it can easily operate on its private observable state
without caring about the values actually being observables

@param state
@param target
Map the observables ( internal state ) to getter / setter of target such that it can easily operate on its private observable state without caring about the values actually being observables @param state @param target
function addProperties ( state, target ) {
    for ( var property in state.observables ) {
      mapProperty( state.observables[property], target, state.properties[property] );
    }
  }
function addProperties ( state , target ) { for ( var property in state . observables ) { mapProperty ( state . observables [ property ] , target , state . properties [ property ] ) ; } }
Map the observables (internal state) to getter/setter of target
 such that it can easily operate on its private observable state
 without caring about the values actually being observables
Map the observables ( internal state ) to getter / setter of target such that it can easily operate on its private observable state without caring about the values actually being observables
// enclose in function to get closure context right