#156 ✓resolved
T.J. Crowder

New API docs $$ appears in Language Section

Reported by T.J. Crowder | April 2nd, 2010 @ 06:57 PM

In the new API docs Andrew just pushed, $$ appears in the Language section, not DOM.

Comments and changes to this ticket

  • Dan Dean

    Dan Dean April 2nd, 2010 @ 07:19 PM

    Hi T.J.

    This is odd indeed. The source code looks correct, but I'm guessing it's the "related to: Prototype.Selector" PDoc declaration which is causing the issue. Compare:

    $ in dom/dom.js:

    /** section: DOM, related to: Element
     *  $(id) -> Element
     *  $(id...) -> [Element...]
     *    - id (String | Element): A DOM node or a string that references a node's
     *      ID.

    $$ in dom/selector.js:

    /** section: DOM, related to: Prototype.Selector
     *  $$(cssRule...) -> [Element...]

    This all looks correct to me... it may be a PDoc bug. Any thoughts Samuel and Tobie?

    I think Prototype.Selector shows up in the Language section because the Prototype namespace is assigned to it. Maybe PDoc is putting $$ there as well due to the related to association.

  • Tobie Langel

    Tobie Langel April 2nd, 2010 @ 08:34 PM

    FWIW, I don't think that the Prototype namespace belongs in the lang section. Should be in dom don't you think?

  • Tobie Langel

    Tobie Langel May 30th, 2010 @ 02:04 AM

    • State changed from “new” to “resolved”


Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins