mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-26 07:18:01 -05:00
Expanding View#el documentation.
This commit is contained in:
@@ -1662,6 +1662,10 @@ new DocumentRow({
|
||||
<p>
|
||||
<tt>this.el</tt> is created from the view's <tt>tagName</tt>, <tt>className</tt>,
|
||||
and <tt>id</tt> properties, if specified. If not, <b>el</b> is an empty <tt>div</tt>.
|
||||
You may assign <b>el</b> directly in your view's
|
||||
<a href="View-constructor">initialize</a> function, if the view is being
|
||||
created for an element that already exists in the DOM. Make sure to assign
|
||||
a real DOM element, and not a jQuery object.
|
||||
</p>
|
||||
|
||||
<p id="View-dollar">
|
||||
|
||||
Reference in New Issue
Block a user