diff options
Diffstat (limited to 'js/directive/NewsTimeout.js')
-rw-r--r-- | js/directive/NewsTimeout.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/directive/NewsTimeout.js b/js/directive/NewsTimeout.js index 2d88f4363..43c6290a3 100644 --- a/js/directive/NewsTimeout.js +++ b/js/directive/NewsTimeout.js @@ -25,7 +25,8 @@ app.directive('newsTimeout', function ($timeout, $rootScope) { $timeout.cancel(timer); }); - // route change also triggers the timeout + // also delete the entry if undo is ignored and the url + // is changed $rootScope.$on('$locationChangeStart', function () { element.remove(); }); |