From 23c8edf231a7a293b55f096699af97135393437e Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 23 Feb 2017 19:22:58 +0100 Subject: [PATCH] Update README.md Fix cancellCallback comment. Add a link to Firebase reference --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 755803e4..aa289178 100644 --- a/README.md +++ b/README.md @@ -72,12 +72,9 @@ var vm = new Vue({ **About the cancelCallback**: -> We can pass an optional cancel callback to our event subscription that will -> be called if the read is ever cancelled. A read would be cancelled if the app -> client doesn't have permission to read from that database reference. This -> callback will be passed an error object indicating why the failure occurred. +> An optional callback that will be notified if your event subscription is ever canceled because your client does not have permission to read this data (or it had permission but has now lost it). This callback will be passed an `Error` object indicating why the failure occurred. -[From Firebase docs](https://firebase.google.com/docs/database/admin/retrieve-data) +[From Firebase API Reference](https://firebase.google.com/docs/reference/js/firebase.database.Query#on) ``` html