Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #1040 from braddunbar/$-docs

Fixes #1038 - Document changes to `view.$`.
  • Loading branch information...
commit 41e9d1a8479ba49ae9b43561229fd11c8b326934 2 parents a960794 + ef5835a
Jeremy Ashkenas authored February 25, 2012

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 7  index.html
7  index.html
@@ -533,6 +533,11 @@ <h2 id="upgrading">Upgrading to 0.9</h2>
533 533
         Similarly, after changing an attribute silently, that <tt>change:attribute</tt>
534 534
         event <i>will</i> fire during the next change.
535 535
       </li>
  536
+      <li>
  537
+        Since <tt>view.$(selector)</tt> is now equivalent to <tt>view.$el.find(selector)</tt>
  538
+        rather than <tt>$(selector, view.el)</tt> it can no longer be used when
  539
+        <tt>selector</tt> is an HTML string or DOM element.
  540
+      </li>
536 541
     </ul>
537 542
 
538 543
     <h2 id="Events">Backbone.Events</h2>
@@ -2092,7 +2097,7 @@ <h2 id="View">Backbone.View</h2>
2092 2097
       <b>$</b> function that runs queries scoped within the view's element. If you use this
2093 2098
       scoped jQuery function, you don't have to use model ids as part of your query
2094 2099
       to pull out specific elements in a list, and can rely much more on HTML class
2095  
-      attributes. It's equivalent to running: <tt>$(selector, this.el)</tt>
  2100
+      attributes. It's equivalent to running: <tt>view.$el.find(selector)</tt>
2096 2101
     </p>
2097 2102
 
2098 2103
 <pre>

0 notes on commit 41e9d1a

Please sign in to comment.
Something went wrong with that request. Please try again.