You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if I'm doing something wrong, or if what I'm trying to do just isn't supported. If you would be so kind, could you please let me know if I'm doing something wrong. I'd love to hear your thoughts.
I'm trying to use @mixin and @mixes to document objects that I'm composing from mixins, rather than repeat myself for every object that mixes a given mixin. I tried copy-pasting the example for @mixin/@mixes on JSDOC at http://usejsdoc.org/tags-mixes.html and running documentation build mixin.html. It doesn't seem to work as I would have expected.
Expected Result:
-FormButton would be documented as having an on and a fire function.
Actual Result:
-FormButton has no documented functions. Screenshot below:
The copied code:
/** * This provides methods used for event handling. It's not meant to * be used directly. * * @mixin */varEventful={/** * Register a handler function to be called whenever this event is fired. * @param {string} eventName - Name of the event. * @param {function(Object)} handler - The handler to call. */on: function(eventName,handler){// code...},/** * Fire an event, causing all handlers for that event name to run. * @param {string} eventName - Name of the event. * @param {Object} eventData - The data provided to each handler. */fire: function(eventName,eventData){// code...}};/** * @constructor FormButton * @mixes Eventful */varFormButton=function(){// code...};FormButton.prototype.press=function(){this.fire('press',{});}mix(Eventful).into(FormButton.prototype);
Documentation version: 5.2.1
The text was updated successfully, but these errors were encountered:
Mixins are not displayed - we track overall tag completion in #9. For this example, we'd probably use class extends instead, if you're using ES6, but nonetheless - answer is that this isn't implement yet, unfortunately! Closing in favor of #9, where this is tracked. If you feel like helping out, please do - I'd be happy to review a PR.
I'm wondering if I'm doing something wrong, or if what I'm trying to do just isn't supported. If you would be so kind, could you please let me know if I'm doing something wrong. I'd love to hear your thoughts.
I'm trying to use @mixin and @mixes to document objects that I'm composing from mixins, rather than repeat myself for every object that mixes a given mixin. I tried copy-pasting the example for @mixin/@mixes on JSDOC at http://usejsdoc.org/tags-mixes.html and running
documentation build mixin.html
. It doesn't seem to work as I would have expected.Expected Result:
-FormButton would be documented as having an
on
and afire
function.Actual Result:

-FormButton has no documented functions. Screenshot below:
The copied code:
Documentation version: 5.2.1
The text was updated successfully, but these errors were encountered: