From 99d960813509dfb757f28a1c9fb8660a235d5144 Mon Sep 17 00:00:00 2001 From: artsyca Date: Thu, 5 Mar 2015 17:44:05 -0500 Subject: [PATCH] Add the `this` context back to the titleToken call This allows us to access the route inside of the call to `titleToken` --- vendor/document-title/document-title.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/document-title/document-title.js b/vendor/document-title/document-title.js index 7e51f98..a649b43 100644 --- a/vendor/document-title/document-title.js +++ b/vendor/document-title/document-title.js @@ -21,7 +21,7 @@ Ember.Route.reopen({ collectTitleTokens: function(tokens) { var titleToken = get(this, 'titleToken'); if (typeof titleToken === 'function') { - titleToken = titleToken(get(this, 'currentModel')); + titleToken = titleToken.call(this, get(this, 'currentModel')); } if (Ember.isArray(titleToken)) {