Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-added this.options to the View base class
In Backbone v1.1.0, one of the breaking changes was to no longer automatically assign the options hash passed into Backbone.View to this.options. This change caused things to break in lots of places where [Marionette.getOption](https://github.com/marionettejs/backbone.marionette/blob/master/src/marionette.helpers.js#L27) was called since it looked for things to automatically be added to `view.options`. Example: [Marionette.View#getTemplate](https://github.com/marionettejs/backbone.marionette/blob/master/src/marionette.view.js#L26) will work if you define the template through extend, but will fail if template is passed as an option. This change re-adds the assignment to `this.options` in the Marionette.View constructor. This effectively solves the problem, though perhaps a more extensive solution that doesn't try to knee-jerk re-add previous behavior would be preferable. Links: [Changelog](http://backbonejs.org/#changelog) [The code removed](jashkenas/backbone@1.0.0...1.1.0#diff-0d56d0d310de7ff18b3cef9c2f8f75dcL1086) [View initialization 1.0.0](https://github.com/jashkenas/backbone/blob/1.0.0/backbone.js#L983) [View initialization 1.1.0](https://github.com/jashkenas/backbone/blob/1.1.0/backbone.js#L986)
- Loading branch information