mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 23:24:41 +00:00
JSDoc Property to member - slight combining update
This commit is contained in:
parent
e6da96e908
commit
96915e1612
1 changed files with 4 additions and 10 deletions
14
docs/build/local-plugins/proptomember.js
vendored
14
docs/build/local-plugins/proptomember.js
vendored
|
@ -17,10 +17,6 @@ function looksLikeItMightContain (haystack, needle) {
|
|||
haystack = haystack || '';
|
||||
needle = needle || '';
|
||||
|
||||
if (!needle) {
|
||||
return false;
|
||||
}
|
||||
|
||||
haystack = haystack.replace(/[^a-z]/gi, '').toLowerCase();
|
||||
needle = needle.replace(/[^a-z]/gi, '').toLowerCase();
|
||||
|
||||
|
@ -50,13 +46,11 @@ exports.handlers.newDoclet = function (e) {
|
|||
{
|
||||
doclet.description = prop.description;
|
||||
}
|
||||
else
|
||||
else if (prop.description &&
|
||||
!looksLikeItMightContain(doclet.description, prop.description))
|
||||
{
|
||||
if (!looksLikeItMightContain(doclet.description, prop.description))
|
||||
{
|
||||
// Tack it on..
|
||||
doclet.description += " " + prop.description;
|
||||
}
|
||||
// Tack it on..
|
||||
doclet.description += " " + prop.description;
|
||||
}
|
||||
|
||||
// And no more prop
|
||||
|
|
Loading…
Reference in a new issue