tbranyen/backbone.layoutmanager — pull request #403 by ssafejava (2013-11-06 09:00:54+00:00)
Title: Remove dependence on `getAllOptions()`. Remove most uses of `.options`.

There was talk and some work in the WIP branch from a while back on removing `getAllOptions()` from LM.

It never made much sense to me to have some functions on the options object and others on the view itself - it especially lead to confusion with regards to `beforeRender`, `afterRender`, and `cleanup`, which were attached to the view itself.

`getAllOptions` in 0.9.4 was flimsy (broken in lodash) and a little redundant (`LayoutManager.prototype.options` is already extended into `view.options`).

This clears up the confusion. The prototype chain of a view is now a bit simpler:

![prototype chain](http://i.imgur.com/xNlFWxU.png)

All tests pass, we are lodash & underscore compatible, and LM functions can still be overridden per view or globally.