From 517adf2f1639351a502ce4900f1832001228d263 Mon Sep 17 00:00:00 2001 From: Tetranoir Date: Sat, 30 May 2015 17:51:43 -0700 Subject: [PATCH] listening for scorechange, doesnt do anything --- scripts/FeedController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/FeedController.js b/scripts/FeedController.js index 737ae86..889018c 100644 --- a/scripts/FeedController.js +++ b/scripts/FeedController.js @@ -122,7 +122,9 @@ angular.module('flashy.FeedController', ['ui.router', 'ngAnimate']). data = JSON.parse(e.data); if (data.event_type == 'new_card') { $scope.add(data.flashcard); - } + } else if (data.event_type == 'score_change') { + // + } }; ws.onerror = function(e) { console.error(e); -- 1.9.1