[Pkg-javascript-commits] [backbone] 03/19: Issue #2, view.render documentation.
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 16:58:37 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.1.1
in repository backbone.
commit 7b4901592937b48a63c0198024f79439746cad24
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date: Wed Oct 13 16:06:18 2010 -0400
Issue #2, view.render documentation.
---
index.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.html b/index.html
index 953c4d8..1bc3d78 100644
--- a/index.html
+++ b/index.html
@@ -1082,7 +1082,7 @@ end
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', view.render)</tt> — and now everywhere that
+ <tt>model.bind('change', renderView)</tt> — and now everywhere that
model data is displayed in the UI, it is always immediately up to date.
</p>
@@ -1251,7 +1251,7 @@ var DocumentView = Backbone.View.extend({
"mouseover .title .date" : "showTooltip"
},
- render: {
+ render: function() {
$(this.el).html(this.template.render(this.model.toJSON()));
this.handleEvents();
return this;
--
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