summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/build/app.js2
-rw-r--r--js/directive/NewsScroll.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/build/app.js b/js/build/app.js
index dc62566aa..f6aff727d 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -1041,7 +1041,7 @@ var $__build_47_app__ = function () {
}
});
scope.$on('$destroy', function () {
- element.off('scroll');
+ elem.off('scroll');
});
}
};
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');
});
}
};