[Pkg-javascript-commits] [backbone] 27/211: Expanding View#el documentation.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:59:58 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.5.0
in repository backbone.

commit 43176d96f96445edb2cb179cfc651cbb7e3ff7ad
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Fri Dec 17 13:00:37 2010 -0500

    Expanding View#el documentation.
---
 index.html | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/index.html b/index.html
index 41827d3..af0341b 100644
--- a/index.html
+++ b/index.html
@@ -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">

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list