summaryrefslogtreecommitdiffstats
path: root/js/directive
diff options
context:
space:
mode:
Diffstat (limited to 'js/directive')
-rw-r--r--js/directive/NewsScroll.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/directive/NewsScroll.js b/js/directive/NewsScroll.js
index 5972cce67..9e2da1564 100644
--- a/js/directive/NewsScroll.js
+++ b/js/directive/NewsScroll.js
@@ -103,7 +103,7 @@ app.directive('newsScroll', ($timeout) => {
// remove scroll handler if element is destroyed
scope.$on('$destroy', () => {
- element.off('scroll');
+ elem.off('scroll');
});
}
};