summaryrefslogtreecommitdiffstats
path: root/js/directive/NewsTimeout.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-15 15:37:43 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-15 15:37:43 +0200
commitad701076c12795609d0c6ae0cb9b40a001726dea (patch)
treeb62e13494391520956add5f783e994a7c4aa0f34 /js/directive/NewsTimeout.js
parentce118f2a97d49d218afed33ef7029ce09b95c044 (diff)
add pull to refresh
Diffstat (limited to 'js/directive/NewsTimeout.js')
-rw-r--r--js/directive/NewsTimeout.js3
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();
});