From fa430eba84628267822e5e4b35121ef1f1cf4be7 Mon Sep 17 00:00:00 2001 From: Tetranoir Date: Tue, 26 May 2015 02:00:03 -0700 Subject: [PATCH] hide card properly updates feed --- scripts/FeedController.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/FeedController.js b/scripts/FeedController.js index 9898424..9ebf009 100644 --- a/scripts/FeedController.js +++ b/scripts/FeedController.js @@ -78,12 +78,14 @@ angular.module('flashy.FeedController', ['ui.router']). $scope.hide = function(card) { console.log('hiding card'); - console.log(card); var found = -1; for (i = 0; i < $scope.cardCols.length; i++) { found = $scope.cardCols[i].indexOf(card); if (found != -1) { - $scope.cardCols[i].splice(found, 1); + $timeout(function() { + console.log('card to hide, found'); + }); + $scope.cardCols[i].splice(found, 1); return; } } -- 1.9.1