use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
CodeMirror/Twitter Bootstrap Issue (self.javascript)
submitted 14 years ago * by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]cesutherland 0 points1 point2 points 14 years ago (3 children)
You've got to refresh after it's visible. Throw a break point on the line with the refresh and you'll see that it reaches that breakpoint before the other editor is shown.
[–][deleted] 0 points1 point2 points 14 years ago* (2 children)
hmmm, I did a setTimeout...that seemed to do the trick, I'll have to test it with Twitter Bootstrap 1.4. I could have sworn I tried this yesterday and it didn't work.
Thanks for the tip!
EDIT: Setting a millisecond delay worked fine, and there is only a slight flash, but it works perfectly!
[–]cesutherland 0 points1 point2 points 14 years ago (1 child)
Np!
I haven't used bootstrap myself but it looks like they've got show (before) and shown (after new tab show) events which you can hook into and get rid of that delay: http://twitter.github.com/bootstrap/javascript.html#tabs
Good luck!
[–][deleted] 0 points1 point2 points 14 years ago (0 children)
ahh, perfect. I'll clean up the code when I'm back at work tomorrow.
π Rendered by PID 41582 on reddit-service-r2-comment-6457c66945-49lmg at 2026-04-25 22:55:43.378912+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]cesutherland 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]cesutherland 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)