From 438125eb7d108f91f68acaacb0532e0c9e44b8c4 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 21 Jan 2016 23:20:24 +0100 Subject: debug --- js/directive/NewsRefreshMasonry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/directive') diff --git a/js/directive/NewsRefreshMasonry.js b/js/directive/NewsRefreshMasonry.js index 8981c8d76..07daa6ea2 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.$parent.$last) { + if (scope.$last) { refresh(elem); } }; -- cgit v1.2.3