[Pkg-javascript-commits] [backbone] 32/34: tweak to view docs

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


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

js pushed a commit to tag 0.1.2
in repository backbone.

commit 2071b932b99c4747df34ab6545f10e2b90e21061
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Tue Oct 19 10:51:27 2010 -0400

    tweak to view docs
---
 index.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.html b/index.html
index 8af0cd7..b2e4929 100644
--- a/index.html
+++ b/index.html
@@ -1197,8 +1197,8 @@ end
       backed by models, each of which can be updated independently when the
       model changes, without having to redraw the page. Instead of digging into
       a JSON object, looking up an element in the DOM, and updating the HTML by hand,
-      it should look more like:
-      <tt>model.bind('change', renderView)</tt> — and now everywhere that
+      you can bind your view's <tt>render</tt> function to the model's <tt>"change"</tt>
+      event — and now everywhere that
       model data is displayed in the UI, it is always immediately up to date.
     </p>
 

-- 
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