Browse files

Changing eval for JSON.parse

  • Loading branch information...
1 parent dda9405 commit 4f170cfda8c5efcdbe7a7fef69dce380ba7b32e4 @DFectuoso DFectuoso committed Apr 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/main.html
View
2 templates/main.html
@@ -38,7 +38,7 @@
function loadMoreUpdates(cursor){
$.get('/updates/' + cursor, function(data) {
- var foo = eval("(" + data + ")" );
+ var foo = JSON.parse(data);
for(var i=0; i<foo[0].messages.length;i++){
$("#content")[0].innerHTML += renderUpdate(foo[0].messages[i])
}

0 comments on commit 4f170cf

Please sign in to comment.