From ef5835ac5ae08ea6b9745549eac33bde0a27b01e Mon Sep 17 00:00:00 2001 From: Brad Dunbar Date: Wed, 22 Feb 2012 18:35:07 -0500 Subject: [PATCH] Fixes #1038 - Document changes to `view.$`. --- index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index d935405d..b6eb3e7d 100644 --- a/index.html +++ b/index.html @@ -533,6 +533,11 @@ Similarly, after changing an attribute silently, that change:attribute event will fire during the next change. +
  • + Since view.$(selector) is now equivalent to view.$el.find(selector) + rather than $(selector, view.el) it can no longer be used when + selector is an HTML string or DOM element. +
  • Backbone.Events

    @@ -2092,7 +2097,7 @@ listView.$el.append(itemView.el); $ function that runs queries scoped within the view's element. If you use this scoped jQuery function, you don't have to use model ids as part of your query to pull out specific elements in a list, and can rely much more on HTML class - attributes. It's equivalent to running: $(selector, this.el) + attributes. It's equivalent to running: view.$el.find(selector)