#230 Konqueror by default shows private variables if included

v3.0
open
Edward Loper
3
2008-01-29
2007-11-01
Anonymous
No

Dynamic hiding of private variables doesn't work on load of the api by default.

Only after manually choosing "hide private" private variables and methods will disappear.

No Javascript error is shown in the status bar.

chrislb at gmx dot de

Discussion

  • Edward Loper
    Edward Loper
    2008-01-29

    Logged In: YES
    user_id=195958
    Originator: NO

    Hm, I'm not proficient enough in javascript to track down what's going on here. If anyone tells me how the javascript should be adjusted to make Konqueror work better, I'd be glad to patch epydoc.

     
  • Edward Loper
    Edward Loper
    2008-01-29

    • priority: 5 --> 3
     
  • Logged In: NO

    epydoc.js has this function which is called once the page is loaded:

    function checkCookie() {
    var cmd=getCookie("EpydocPrivate");
    if (cmd && cmd.substr(0,4)!="show" && location.href.indexOf("#_") < 0)
    toggle_private();
    }

    In my Konqueror (Debian 3.5.9) getCookie() returns null and setting the cookie with
    > document.cookie = "EpydocPrivate=hide"
    esults in a warning "object not accessible".

    I don't know what the method is supposed to do when there is no cookie found, and I can only guess that
    > (cmd || (cmd.substr(0,4)!="show" && location.href.indexOf("#_") < 0))
    might be what the author wanted it to do.

    chrislb at gmx dot de