Skip to content

Commit

Permalink
Merge pull request #30 from pwfisher/master
Browse files Browse the repository at this point in the history
clarify example (minor)
  • Loading branch information
kimroen committed Dec 9, 2015
2 parents 8f987b4 + b0a51e5 commit d678dcd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,9 @@ And continue to the Application Route:
// routes/application.js
export default Ember.Route.extend({
title: function(tokens) {
var base = 'My Blog';
var hasTokens = tokens && tokens.length;

return hasTokens ? tokens.reverse().join(' - ') + ' - ' + base : base;
tokens = Ember.makeArray(tokens);
tokens.push('My Blog');
return tokens.reverse().join(' - ');
}
});
```
Expand Down

0 comments on commit d678dcd

Please sign in to comment.