Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

2-way binding, bindable selection, and efficiency improvements - fixes #2 #7 #9 #13 #15 #30

Merged
merged 9 commits into from
Sep 26, 2014

Conversation

kevinpschaaf
Copy link
Contributor

Introduces breaking API change to enable 2-way data-binding from virtualized elements to their data models (templates should bind to user data on model.*; see API docs for details). Also makes selection property bindable, and provides efficiency improvements when muting data array (elements are no longer re-rendered on data.push, etc.).

- Templates should now 2-way bind to `model.*` from user data array (breaking change)
- Handle data array splices more efficiently: initialize never re-assign the physical data array that drives the template repeat; only lazily add to it when adding, and hide already generated items when removing
- Make selection bindable, and handle switching between multi and non-multi
Loosen the focus gambit to ease ability to test (no impact on actual use).
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