Skip to content

Documentation broken聽#327

Closed
Closed

Description

@callumacrae

http://www.nodegit.org/

"Uncaught TypeError: Cannot read property 'trim' of undefined"

馃槥

Also cannot read docs at all. "API Documentation" is the last thing on the page.

Activity

  1. maxkorp commented on Dec 11, 2014

    @maxkorp
    Collaborator

    Interesting, what browser are you using? I can see it just fine on Chrome 39.0.2171.71 (OSX).

  2. callumacrae commented on Dec 11, 2014

    @callumacrae
    Author

    Yeah, just noticed it's working fine in other browsers. I'm using 39.0.2171.71 (OSX).

    $(".api-content script").eq(1) returns undefined, which is what is causing the issue:

        var contentTemplate = combyne($(".api-content script").eq(1).html().trim());
    
  3. maxkorp commented on Dec 11, 2014

    @maxkorp
    Collaborator

    Try an incognito window? I bet it's an extension, because it works fine on the exact same build for me.

  4. callumacrae commented on Dec 11, 2014

    @callumacrae
    Author

    Ah, I forgot to disable my extensions when I tried it in incognito tab!

    It's this extension by @ttrefren breaking it: https://github.com/ttrefren/chrome-mpdebug. Not sure why.

    I've disabled that extension for now 馃槃

  5. maxkorp commented on Dec 11, 2014

    @maxkorp
    Collaborator

    Weird. Oh well.

  6. callumacrae commented on Dec 11, 2014

    @callumacrae
    Author

    Could mean that a selector in your documentation is brittle鈥攈ave you had any issues like this before? I can take a look :)

  7. maxkorp commented on Dec 11, 2014

    @maxkorp
    Collaborator

    Certainly possible. I'm not aware of having had any issues, but @tbranyen would know better. It would be awesome if you want to take a look, the docs have been needing love anyways. Heres the repo
    https://github.com/nodegit/nodegit.github.com

  8. callumacrae commented on Dec 11, 2014

    @callumacrae
    Author

    馃憤, feel free to poke me every couple weeks or so because I'll probably forget

  9. tbranyen commented on Dec 11, 2014

    @tbranyen
    Member

    I don't think it's our responsibility to guard against third party JavaScript breaking the application. If you have an extension breaking sites, I'd stop using it completely.

  10. callumacrae commented on Dec 11, 2014

    @callumacrae
    Author

    It's not your responsibility, but it could be a sign that your code is breaking easily鈥攅.g. if a load of plugins are using a similar pattern to chrome-mpdebug, your website could be broken by loads of extensions. That doesn't seem to be the case, though, so it's probably fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions