Skip to content

Bring backbone-view-model to the future #7

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cpubot
Copy link

@cpubot cpubot commented Oct 14, 2014

This pull request includes a few of enhancements.

  • Use bower to manage dependencies
  • Fix a bug which breaks the binding of ViewModels to their source_models in Underscore >= 1.7.0
  • Use memory safe listenTo to listen to source_model change events

Thanks for the plugin!

_.union in underscore < 1.7.0 wrapped non-array values into an array.
1.7.0 does not allow this, which breaks the binding of ViewModels to
their source models. Update the initialization of the
sourceModel variable to wrap an array around source_model so that we
enter the _.each loop properly.
@bretmorris
Copy link

LOVE THIS

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