src/module/extended/builder-relations.js
function applyHooks(_target, _hooks, _owner) {
    for(var key in _hooks) {
      if(_hooks.hasOwnProperty(key)) {
        _target.$on(key, wrapHook(_hooks[key], _owner));
      }
    }
  }
function applyHooks(_target, _hooks, _owner) {
    for(var key in _hooks) {
      if(_hooks.hasOwnProperty(key)) {
        _target.$on(key, wrapHook(_hooks[key], _owner));
      }
    }
  }
function applyHooks ( _target , _hooks , _owner ) { for ( var key in _hooks ) { if ( _hooks . hasOwnProperty ( key ) ) { _target . $on ( key , wrapHook ( _hooks [ key ] , _owner ) ) ; } } }
wraps a bunch of hooks
wraps a bunch of hooks