summaryrefslogtreecommitdiffstats
path: root/examples/nodejs-mongodb-mongoose-restify
diff options
context:
space:
mode:
authorThomas Davis <thomasalwyndavis@gmail.com>2012-04-22 23:38:20 +1000
committerThomas Davis <thomasalwyndavis@gmail.com>2012-04-22 23:38:20 +1000
commitee83874753b1bcda2eebfdeaa3cd547c6abd3a5e (patch)
tree8707d19c6ab09d8e528124160ef6b88ae5dec904 /examples/nodejs-mongodb-mongoose-restify
parentf2fdea7ca04b0e31d1a4deecf8271ed681f1056a (diff)
downloadbackbonetutorials-ee83874753b1bcda2eebfdeaa3cd547c6abd3a5e.zip
backbonetutorials-ee83874753b1bcda2eebfdeaa3cd547c6abd3a5e.tar.gz
backbonetutorials-ee83874753b1bcda2eebfdeaa3cd547c6abd3a5e.tar.bz2
Tutorial
Diffstat (limited to 'examples/nodejs-mongodb-mongoose-restify')
-rw-r--r--examples/nodejs-mongodb-mongoose-restify/js/views/guestbook/list.js3
-rw-r--r--examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html3
2 files changed, 1 insertions, 5 deletions
diff --git a/examples/nodejs-mongodb-mongoose-restify/js/views/guestbook/list.js b/examples/nodejs-mongodb-mongoose-restify/js/views/guestbook/list.js
index 392aae1..4841357 100644
--- a/examples/nodejs-mongodb-mongoose-restify/js/views/guestbook/list.js
+++ b/examples/nodejs-mongodb-mongoose-restify/js/views/guestbook/list.js
@@ -9,15 +9,12 @@ define([
el: '.guestbook-list-container',
render: function () {
var that = this;
-
var messages = new MessagesCollection();
messages.fetch({
success: function(messages) {
$(that.el).html(_.template(guestbookListTemplate, {messages: messages.models, _:_}));
}
});
-
-
}
});
return GuestbookList;
diff --git a/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html b/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html
index 1256a56..7f7541c 100644
--- a/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html
+++ b/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html
@@ -1,7 +1,6 @@
-<% console.log(messages);_.each(messages, function(message) { %>
+<% _.each(messages, function(message) { %>
<p><%= message.get('message') %></p>
<em><%= message.get('date') %></em>
-
<% }); %>