summaryrefslogtreecommitdiffstats
path: root/js/directive
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-01-21 23:18:40 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2016-01-21 23:18:40 +0100
commite5083a44186c77faf473303d3981f834e5d4f0f0 (patch)
treefe2dfe2630b104022af9cc3a97e0756b63826d43 /js/directive
parent988603ed7b70489be90a3a9491c4c7e1c5a790e8 (diff)
debug
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);
}
};