Skip to content

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