mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-08 03:00:26 -04:00
tweak to view docs
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user