Add hooks and include mixins
This commit is contained in:
parent
4ff6e0d707
commit
893768e895
|
@ -1,10 +1,11 @@
|
||||||
/**
|
/*!
|
||||||
* Module exports
|
* Module exports
|
||||||
*/
|
*/
|
||||||
module.exports = Hookable;
|
module.exports = Hookable;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Hooks mixins
|
* Hooks object.
|
||||||
|
* @class Hookable
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function Hookable() {
|
function Hookable() {
|
||||||
|
|
|
@ -36,7 +36,7 @@ function Inclusion() {
|
||||||
*``` Passport.include(passports, {owner: [{posts: 'images'}, 'passports']});
|
*``` Passport.include(passports, {owner: [{posts: 'images'}, 'passports']});
|
||||||
*
|
*
|
||||||
* @param {Array} objects Array of instances
|
* @param {Array} objects Array of instances
|
||||||
* @param {String}, {Object} or {Array} include Which relations to load.
|
* @param {String|Object|Array} include Which relations to load.
|
||||||
* @param {Function} cb Callback called when relations are loaded
|
* @param {Function} cb Callback called when relations are loaded
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue