jupiterjs/documentjs — Issue #14: Generated docs not handling event listeners correctly
Author: bsander
Created: 2011-11-05 09:46:33+00:00
State: open

When documenting the event listeners in my controllers I ran into the following issue. I try to document an event listener like this:

```javascript
/**
* Changes the current [navAttr] route to the controller supplied in el's
* data-controller attribute.
*
* @param {HTMLElement} el the element this event fired on
*/
'li click': function(el) {
$.route.attr(this.options.navAttr, el.data('controller'));
}
```

Running the app/scripts/docs.js command on this runs fine. Howerver, when I look at the generated results, the documentation to this method is "unclickable" (i.e. nothing happens when I click on the item, except for an error in the JS console. See http://ge.tt/8dBpTZ9?c ). The problem seems to be related to the whitespace used in the definition, causing the link in the generated documentation to break.