Added conditional to fallback to old style

This commit is contained in:
Justin Greywolf
2020-01-06 16:37:08 -08:00
parent 58fbfc3c38
commit 57b5b9a7a6

View File

@@ -331,6 +331,12 @@ const drawClass = function(elem, classDef) {
let returnType = parsedText[6] ? ' : ' + parsedText[6] : '';
displayText =
visibility + methodName + '(' + parameterType + ' ' + parameterName + ')' + returnType;
} else {
let methodEnd = displayText.indexOf(')') + 1;
classifier = displayText.substring(methodEnd, methodEnd + 1);
if (classifier !== '' && classifier !== ' ') {
displayText = displayText.replace(classifier, '');
}
}
switch (classifier) {