only set the title when we have something nice to say

This commit is contained in:
Maxwell Salzberg 2012-04-25 23:08:11 -07:00
parent 87464b84d0
commit e9217931ce

View file

@ -42,9 +42,10 @@ app.pages.PostViewer = app.views.Base.extend({
},
postRenderTemplate : function() {
/* set the document title */
document.title = this.model.get("title");
/* set the document title, if it has one */
if(this.model.get("title")){
document.title = this.model.get("title");
}
this.bindNavHooks();
},