paper.js/build/jsdoc-toolkit/app/plugins/constructors.js

14 lines
No EOL
384 B
JavaScript

JSDOC.PluginManager.registerPlugin(
"JSDOC.constructors",
{
beanSymbols: {},
onSymbol: function(symbol) {
// If the method name is 'initialize', or it is a static method
// with a capitalized first character, it is a constructor
if (/(#initialize|\.[A-Z][a-z][^#.]+$)/.test(symbol.alias)) {
symbol.isConstructor = true;
symbol.isa = 'FUNCTION';
}
}
}
);