0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-27 13:59:01 -05:00

improve docs

This commit is contained in:
liabru 2016-11-03 23:35:00 +00:00
parent 7a7187a68c
commit 9856e3cd79
2 changed files with 4 additions and 0 deletions

View file

@ -528,6 +528,7 @@ module.exports = Common;
/**
* Chains a function to excute before the original function on the given `path` relative to `base`.
* See also docs for `Common.chain`.
* @method chainPathBefore
* @param {} base The base object
* @param {string} path The path relative to `base`
@ -543,6 +544,7 @@ module.exports = Common;
/**
* Chains a function to excute after the original function on the given `path` relative to `base`.
* See also docs for `Common.chain`.
* @method chainPathAfter
* @param {} base The base object
* @param {string} path The path relative to `base`

View file

@ -59,6 +59,7 @@ var Common = require('./Common');
/**
* Chains a function to excute before the original function on the given `path` relative to `Matter`.
* See also docs for `Common.chain`.
* @method before
* @param {string} path The path relative to `Matter`
* @param {function} func The function to chain before the original
@ -71,6 +72,7 @@ var Common = require('./Common');
/**
* Chains a function to excute after the original function on the given `path` relative to `Matter`.
* See also docs for `Common.chain`.
* @method after
* @param {string} path The path relative to `Matter`
* @param {function} func The function to chain after the original