tbranyen/backbone.layoutmanager — Issue #34: LayoutManager "views" object, corresponding to the assigned selector
Author: tvpmb
Created: 2012-01-26 23:34:20+00:00
State: open

In the Layout object, each of the views associated with the layout are stored in a "views" object. The problem I'm running into is the views object references each of the individual views, but not by an alias name, but by the selector used to populate the DOM. Specifically this is a problem when you have something like this:

```mainLayout.view("#sidebar", new Main.Views.SideBar());```

Because the selector is now unable to be accessed via dotted object notation:

```layoutObj.views.#sidebar``` (doesn't work) versus ```layoutObj.views.header``` (works)

I'm looking into a solution for this, either by creating some type of aliased reference or perhaps changing the LayoutManager. What do you think about this? Any ideas on a direction?