jbt / docker

Documentation generator
http://jbt.github.com/docker
MIT License
234 stars 56 forks source link

Docker breaks for jsDoc param with only one "tag" #67

Closed jasonseney closed 9 years ago

jasonseney commented 10 years ago

Example that will error (the @static is the line that causes the issue):

/**
* # This is the header
*
* Description goes here.
*
* @static
* @param foo Something to foobar.
*/
function test(foobar) {
    console.log(foobar);
}

Resulting error:

/usr/local/lib/node_modules/docker/src/docker.js:726
          if(bits[0].charAt(0) == '{') tag.types = grabType(bits).split(/ *[|,
                     ^
TypeError: Cannot call method 'charAt' of undefined
jbt commented 9 years ago

Closed by #68.