* @param {String} [name] Provide a name for the hook function. This serves no purpose, other than the ability to be able to order hooks based on some sort of priority system in the future.
* @param {Function} fn The hook function
*
* @alias hook
*/
Hooks.addHook=function(hookType,name,fn){
if(typeofname==='function'){
fn=name;
name=null;
}
returnpromise;
},
hook:function(){
returnHooks.addHook.apply(this,arguments);
},
/**
* Add a hook to the model
*
* @param {String} hooktype
* @param {String} [name] Provide a name for the hook function. This serves no purpose, other than the ability to be able to order hooks based on some sort of priority system in the future.