Re:Pure CSS collapsible tree menu
by joshfraser on Saturday February 05, 2011 @03:06AM
(#2182712)
Weird. I just tested it again in FF 3.6 and it works fine for me.
[ Parent
| on HN ]
Firebug reports this error: "missing } after function body"
jquery_menu (line 1): ("li").addClass("selected").parent().p...).addClass("selected"); }); });
My FF is in Windows at the moment; it would be weird if that was the real difference.
I wonder if it has to do with the use of C++-style comments on unbroken lines? The HTML is pretty fairly unreadable on my side, as if someone joined most of the lines together, both in linux (I did a wget on your link) and Windows. As a result, I think some of those braces are on the same line as a // comment.
Re:Pure CSS collapsible tree menu
by joshfraser on Monday February 07, 2011 @12:23AM
(#2187778)
ah, that sounds like a problem with the code that compresses the HTML and JavaScript on my blog. it's currently being A/B tested which explains why it worked for me, but not you. thanks for the heads up. i'll get it fixed. my actual example should work fine, it's just being broken by the post-processing.