function installHooks(models) {
    models.forEach(function (model) {
        var hooks = getHooks(model);
        if (hooks) {
            hooks.forEach(function (hook) {
                installHook(model, hook);
            });
        }
    });
}
/**
 * Installs hooks on the specified models
 */
Installs hooks on the specified models
Installs hooks on the specified models
function installHooks(models) {
    models.forEach(function (model) {
        var hooks = getHooks(model);
        if (hooks) {
            hooks.forEach(function (hook) {
                installHook(model, hook);
            });
        }
    });
}
function installHooks ( models ) { models . forEach ( function ( model ) { var hooks = getHooks ( model ) ; if ( hooks ) { hooks . forEach ( function ( hook ) { installHook ( model , hook ) ; } ) ; } } ) ; }
Installs hooks on the specified models
Installs hooks on the specified models