diff options
Diffstat (limited to 'app/assets/javascripts/app/pages/post-viewer.js')
-rw-r--r-- | app/assets/javascripts/app/pages/post-viewer.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/app/pages/post-viewer.js b/app/assets/javascripts/app/pages/post-viewer.js index 17b0c19f8..71f1d663d 100644 --- a/app/assets/javascripts/app/pages/post-viewer.js +++ b/app/assets/javascripts/app/pages/post-viewer.js @@ -9,8 +9,10 @@ app.pages.PostViewer = app.views.Base.extend({ }, initialize : function(options) { - this.model = new app.models.Post({ id : options.id }); + var post = this.model = new app.models.Post({ id : options.id }); this.model.preloadOrFetch().done(_.bind(this.initViews, this)); + this.model.interactions.fetch() //async, yo, might want to throttle this later. + this.bindEvents() }, |