mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 22:01:58 -05:00
14 lines
384 B
JavaScript
14 lines
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';
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
);
|