documentcloud/backbone — pull request #727 by ferbs (2011-11-08 04:02:05+00:00)
Title: view.el factory/selector function

A view.el function that returns a DOM element is useful for bundling templating code or advanced selectors within the View directly.

"You may assign el directly if the view is being created for an element that already exists in the DOM. Use either a reference to a real DOM element, a function that returns a DOM element, or a css selector string."

Tests included. I can go deeper and update the documentation if you think you'll pick up this pull request.