Coder Social home page Coder Social logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024

Original comment by micmath on 10 Aug 2007 at 7:38

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from jsdoc-toolkit.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024

Original comment by micmath on 11 Aug 2007 at 1:50

  • Changed state: Started

from jsdoc-toolkit.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
Added in release 186.

Original comment by micmath on 12 Aug 2007 at 10:54

  • Changed state: Fixed

from jsdoc-toolkit.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
Hello micmath.

Thanks a lot for the work and for the speed.

I have seen a little bug when there is a parameter with @param before @config, 
the
first item of config is prefixed with the name of @param.

Is it a bug or a bad use of the fonctionnality?


Thanks again

Regards Alex

Original comment by [email protected] on 13 Aug 2007 at 6:00

from jsdoc-toolkit.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
Not a bug Alex, that is by design. The idea is that @config is used to document
properties of parameters, so if you have a parameter named foo, and you expect 
there
to be a bar property of that foo, then we are documenting foo.bar.

function Example(foo) {
    this.bar = foo.bar;
}

If you must document a constructor that takes a normal parameter first and then 
a
configuration object second, you can just do this:

/**
 * @param p A normal parameter
 * @param foo A configuration object.
 * @config bar A property of foo that is required.
 */
function Example(p, foo) {
    this.p = p;
    this.bar = foo.bar;
}

Original comment by micmath on 13 Aug 2007 at 6:24

from jsdoc-toolkit.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
Hi

I agree with you. So the problem is when you have more than one @config. The 
first
has the good prefix (name of parameter) but other have the prefix "config". They
should have the name of the parameter as the first.

Regards Alex

Original comment by [email protected] on 13 Aug 2007 at 6:32

from jsdoc-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.