defer the optimistic loading of profile wallpaper and title (at least wait until the call stack is emptied) [ci skip]
This commit is contained in:
parent
b641cddb65
commit
1791d6b1b8
1 changed files with 5 additions and 2 deletions
|
|
@ -28,8 +28,11 @@ app.pages.Profile = app.views.Base.extend({
|
|||
this.stream = options && options.stream || new app.models.Stream()
|
||||
|
||||
/* this needs to be fixed... used to be bound by this.model change event.
|
||||
* will most likely result in spontaneous results :( */
|
||||
this.setPageTitleAndBackground()
|
||||
* will most likely result in spontaneous results :(
|
||||
*
|
||||
* note: defer to make sure the call stack is emptied before calling this, buying us a little more time */
|
||||
_.defer(_.bind(this.setPageTitleAndBackground, this))
|
||||
|
||||
|
||||
/* binds for getting started pulsation */
|
||||
this.stream.bind("fetched", this.pulsateNewPostControl, this)
|
||||
|
|
|
|||
Loading…
Reference in a new issue