rotundasoftware/backbone.collectionView — pull request #47 by elliottjohnson (2014-02-07 00:43:33+00:00)
Title: Making use of backbone.viewOptions

This pull request contains the modifications necessary to make use of the backbone.viewOptions library in place of the previous, overlapping functionality.

This implementation is backwards compatible with the previous and since it has the backbone.viewOptions source added directly to the backbone.collectionView source it shouldn't require any new requirements, but it does require backbone v1.1, since backbone.collectionView does.

I took a few liberties in how backbone.viewOptions is used. Firstly I consolidated the "allowed options" and "options requiring rerendering" lists into the options declaration. This involved adding a "rerender" boolean for those options that were in the rerendering list, as well as a function for testing if an option requires rerendering. I feel these fit well and are easily understood, but would understand if you'd prefer a different method be used.

I'm sure there will be some naming adjustment changes (stuff like "originalValue" doesn't always make sense), but if you'd like something more done, I'd be happy to make the adjustments.

Cheers,
Elliott