Coder Social home page Coder Social logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
The [name] syntax is only valid for @params. This would be a feature request to 
add it to @config as well.

Original comment by micmath on 16 Oct 2007 at 8:10

  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

from jsdoc-toolkit.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024

Original comment by micmath on 16 Oct 2007 at 8:33

  • Changed state: Accepted

from jsdoc-toolkit.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
In point of fact, the documentation located at:

http://code.google.com/p/jsdoc-toolkit/wiki/DocExamples

... under "Parameters" has an example with optional config parameters.  I just 
noticed this enhancement, after I submitted my bug based on this documentation.

The enhancement code is contained within my bug report.  Please let me know if 
the 
fix is appropriate!  For now, I'm going to keep that source change local to 
support 
my needs.

Original comment by clintandrewhall on 15 Nov 2007 at 5:15

from jsdoc-toolkit.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
Have you tried this in version 1.4? I ran the example from 
http://code.google.com/p/jsdoc-toolkit/wiki/DocExamples 
using 1.4.0b and it seems to work for me.

That example should better be:

/**
 * Modify the details of the employee.
 * @param {object} employee The employee.
 * @param {object} newDetails
 * @config {string} [title] The new job title.
 * @config {number} salary The new salary.
 */
function modify(employee, newDetails) {
    if (newDetails.title != undefined)  employee.title = newDetails.title;
    employee.salary = newDetails.salary;
}

Where newDetails is a configuration object with a required property and an 
optional property.

Original comment by micmath on 15 Nov 2007 at 7:59

from jsdoc-toolkit.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
Closed due to lack of feedback from submitter. Feel free to reopen if this is 
still considered a valid bug.

Original comment by micmath on 21 Dec 2007 at 6:52

  • Changed state: Invalid

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.