From 329ed0e20f09db0769c25d58e494dbeb1a899424 Mon Sep 17 00:00:00 2001 From: jdat82 Date: Fri, 12 Aug 2016 14:49:11 +0200 Subject: [PATCH] =?UTF-8?q?feature/doc=20=E2=80=94=20Little=20precision=20?= =?UTF-8?q?about=20why=20I=20mixed=20two=20API=20in=20order=20to=20process?= =?UTF-8?q?=20two=20related=20events.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/favourite/favourite.factory.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/favourite/favourite.factory.js b/app/favourite/favourite.factory.js index bcd7c23..d40c011 100644 --- a/app/favourite/favourite.factory.js +++ b/app/favourite/favourite.factory.js @@ -181,7 +181,8 @@ // WARNING: when deleting, I'm using firebase directly because angularfire just give you the deleted key but not the actual // record. And you can't get it yourself because by the time you get notified, the local one is already deleted. // So in order to get best of both world and do what I want to do the easy way, I'm mixing here angularfire and pure firebase - // code. + // code which is kind of a good thing cause angularfire intent is not to replace the firebase sdk completely but just simplify + // integration with angular when it makes sense. var ref = faves.$ref(); ref.on('child_removed', function (snapshot) { var value = snapshot.val();