app/assets/javascripts/bastion/components/page-title.service.js in bastion-0.2.2 vs app/assets/javascripts/bastion/components/page-title.service.js in bastion-0.2.3
- old
+ new
@@ -24,11 +24,13 @@
angular.module('Bastion.components').service('PageTitle', ['$window', '$interpolate',
function ($window, $interpolate) {
this.titles = [];
this.setTitle = function (title, locals) {
+ var interpolated;
+
if (title) {
- var interpolated = $interpolate(title);
+ interpolated = $interpolate(title);
$window.document.title = interpolated(locals);
this.titles.push($window.document.title);
}
};