More precise {function} jsdoc definition
Merge pull request #1249 from fredj/apidoc_function

More precise {function} jsdoc definition