diff options
author | Thomas Davis <thomasalwyndavis@gmail.com> | 2012-04-22 23:38:20 +1000 |
---|---|---|
committer | Thomas Davis <thomasalwyndavis@gmail.com> | 2012-04-22 23:38:20 +1000 |
commit | ee83874753b1bcda2eebfdeaa3cd547c6abd3a5e (patch) | |
tree | 8707d19c6ab09d8e528124160ef6b88ae5dec904 /examples/nodejs-mongodb-mongoose-restify | |
parent | f2fdea7ca04b0e31d1a4deecf8271ed681f1056a (diff) | |
download | backbonetutorials-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.js | 3 | ||||
-rw-r--r-- | examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html | 3 |
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> - <% }); %> |