Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- render: function() {
- var data = messages.map(function(message) { return message.get('content') + 'n'});
- var result = data.reduce(function(memo,str) { return memo + str }, '');
- $("#chatHistory").text(result);
- return this;
- }
- render: function() {
- var result = messages.pluck('content').join('n')
- $("#chatHistory").text(result);
- return this;
- }
Add Comment
Please, Sign In to add comment