Created
July 24, 2012 14:54
-
-
Save boxxxie/3170431 to your computer and use it in GitHub Desktop.
issue with bootstrap tabs having a delayed render
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| render:function(){ | |
| #('selector').html(my_tab_html); | |
| _.defer( | |
| function(){ | |
| view.$('.nav-tabs a'+selected_tab).tab('show'); | |
| view.delegateEvents(); //this smoothed out the user experience (somehow) | |
| //need to do things related to tabs here, not right after being rendered to page .... | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment