summaryrefslogtreecommitdiffstats
path: root/js/directive/NewsTitleUnreadCount.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/directive/NewsTitleUnreadCount.js')
-rw-r--r--js/directive/NewsTitleUnreadCount.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/directive/NewsTitleUnreadCount.js b/js/directive/NewsTitleUnreadCount.js
index 709b910ed..0866b4b72 100644
--- a/js/directive/NewsTitleUnreadCount.js
+++ b/js/directive/NewsTitleUnreadCount.js
@@ -7,19 +7,19 @@
* @author Bernhard Posselt <dev@bernhard-posselt.com>
* @copyright Bernhard Posselt 2014
*/
-app.directive('newsTitleUnreadCount', ($window) => {
+app.directive('newsTitleUnreadCount', function ($window) {
'use strict';
- let baseTitle = $window.document.title;
+ var baseTitle = $window.document.title;
return {
restrict: 'E',
scope: {
unreadCount: '@'
},
- link: (scope, elem, attrs) => {
- attrs.$observe('unreadCount', (value) => {
- let titles = baseTitle.split('-');
+ link: function (scope, elem, attrs) {
+ attrs.$observe('unreadCount', function (value) {
+ var titles = baseTitle.split('-');
if (value !== '0') {
$window.document.title = titles[0] +