Konqueror by default shows private variables if included
Brought to you by:
edloper
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
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.
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