diff --git a/public/client.js b/public/client.js index d23fd86..ee4719f 100644 --- a/public/client.js +++ b/public/client.js @@ -42,27 +42,4 @@ dreamInput.focus(); }; -})() - -/* -$(function() { - console.log('hello world :o'); - - $.get('/dreams', function(dreams) { - dreams.forEach(function(dream) { - $('
  • ').text(dream).appendTo('ul#dreams'); - }); - }); - - $('form').submit(function(event) { - event.preventDefault(); - var dream = $('input').val(); - $.post('/dreams?' + $.param({dream: dream}), function() { - $('
  • ').text(dream).appendTo('ul#dreams'); - $('input').val(''); - $('input').focus(); - }); - }); - -}); -*/ \ No newline at end of file +})() \ No newline at end of file