only set the title when we have something nice to say
This commit is contained in:
parent
87464b84d0
commit
e9217931ce
1 changed files with 4 additions and 3 deletions
|
|
@ -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();
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue