summaryrefslogtreecommitdiffstats
path: root/js/directive
diff options
context:
space:
mode:
Diffstat (limited to 'js/directive')
-rw-r--r--js/directive/NewsRefreshMasonry.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/directive/NewsRefreshMasonry.js b/js/directive/NewsRefreshMasonry.js
index 07daa6ea2..8981c8d76 100644
--- a/js/directive/NewsRefreshMasonry.js
+++ b/js/directive/NewsRefreshMasonry.js
@@ -23,7 +23,7 @@ app.directive('newsRefreshMasonry', function ($timeout) {
return function (scope, elem) {
console.log('loading');
console.log(scope);
- if (scope.$last) {
+ if (scope.$parent.$last) {
refresh(elem);
}
};