Skip to content

Conversation

@jwngr
Copy link

@jwngr jwngr commented Jul 7, 2015

Implements the long-term solution proposed in issue #36 and supersedes PR #41. Using bindAsArray() should now properly order items in all cases (including limit and ordered queries) and should be much faster than the previous implementation since we don't re-calculate all records every time a single one is added, removed, updated, or moved.

I added a ton of tests for bindAsArray() which should ensure things continue to work properly.

Also, the mixin now only exposes the bindAsArray(), bindAsObject(), and unbind() methods. "Private" methods like _bind() are now properly hidden internally.

jwngr pushed a commit that referenced this pull request Jul 7, 2015
Fixed ordering issues with bindAsArray() and beefed up test suite
@jwngr jwngr merged commit 5710cf5 into master Jul 7, 2015
@jwngr jwngr deleted the jw-array-fixes branch July 7, 2015 07:36
@FirebaseExtended FirebaseExtended locked and limited conversation to collaborators Dec 9, 2020
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.

1 participant