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:
danielgrippi 2012-05-09 00:46:40 -07:00
parent b641cddb65
commit 1791d6b1b8

View file

@ -28,8 +28,11 @@ app.pages.Profile = app.views.Base.extend({
this.stream = options && options.stream || new app.models.Stream() this.stream = options && options.stream || new app.models.Stream()
/* this needs to be fixed... used to be bound by this.model change event. /* this needs to be fixed... used to be bound by this.model change event.
* will most likely result in spontaneous results :( */ * will most likely result in spontaneous results :(
this.setPageTitleAndBackground() *
* 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 */ /* binds for getting started pulsation */
this.stream.bind("fetched", this.pulsateNewPostControl, this) this.stream.bind("fetched", this.pulsateNewPostControl, this)