Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

   console.log(output); 
needs to be last line outside each() :) Or move var content = "" inside each()


Whoops, you're right, console.log was supposed to be at the very bottom of the script. By default most browser consoles scroll you to the bottom of the output, so I just read the first half scrolling up and never noticed. No matter, amarraja's version is much better.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: