Skip to content
This repository has been archived by the owner on Mar 31, 2019. It is now read-only.

Event funcs #40

Merged
merged 26 commits into from
Sep 25, 2016
Merged

Event funcs #40

merged 26 commits into from
Sep 25, 2016

Conversation

zabawaba99
Copy link
Owner

@zabawaba99 zabawaba99 commented Apr 18, 2016

closes #36

@zabawaba99 zabawaba99 self-assigned this Apr 18, 2016
return fb.addEventFunc(fn, handleSSE)
}

func (fb *Firebase) ChildRemoved(fn ChildEventFunc) error {
Copy link
Owner Author

@zabawaba99 zabawaba99 Apr 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Add documentation

It was not sending an event per child if multiple children were added at once.
As a side-effect, also changing the implementation of a Datasnap shot and removing the
dependency from sync.Node
}

// we have a single event to process
node := sync.NewNode(child, event.Data)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about L72-76 and L40-43 being extracted into a function that handles this?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zabawaba99 zabawaba99 merged commit 8f771bb into master Sep 25, 2016
@zabawaba99 zabawaba99 deleted the event-funcs branch September 25, 2016 01:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants