4 ms·
Firebug reports this error: "missing } after function body" jquery_menu (line 1): ("li").addClass("selected").parent().p...).addClass("selected"); }); }); My
by Xurinos 16y ago
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.
- joshfraser 16y agoah, 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.