Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make database on method return successCallback #19

Closed
wants to merge 1 commit into from
Closed

Make database on method return successCallback #19

wants to merge 1 commit into from

Conversation

greena13
Copy link
Contributor

As per https://firebase.google.com/docs/reference/js/firebase.database.Reference, the on method should return the successCallback.

@greena13
Copy link
Contributor Author

On second thought, this may not work with the primary purpose for returning the callback: ease of unbinding it later.

Will require more testing.

@Salakar
Copy link
Member

Salakar commented Mar 24, 2017

@greena13 this is as it should be though and doesn't break anything existing so i'm happy to merge this as is to be honest as currently this returns the promises from db.on - which is wrong

@Salakar
Copy link
Member

Salakar commented Mar 24, 2017

Closing this as I have added this in my local copy - i'm working on transaction support atm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants