jashkenas/backbone — pull request #2933 by mikefrey (2013-12-19 21:42:01+00:00)
Title: View Options

As of Backbone 1.1, options passed into the Backbone.View constructor are no longer automatically attached to the view instance as `this.options`. This change has made it nearly impossible for us to upgrade our apps past v1.0.

Attaching `options` to the view in the `initialize` function will not solve the problem since there are many places that we use `this.options` in functions that are run in `_ensureElement`, which is invoked before the `initialize` function.

Proposed solution: to allow developers to define additional `viewOptions` that will be added to a view instance along with `model`, `collection`, `el`, etc. That way, we can specify which properties on the passed in `options` object will be available to us before `initialize` executes.