News for hackers. Stuff that matters.
Re:Riot.js – A 1kb client-side MVP framework by ssmoot on Friday November 01, 2013 @09:33AM (#6653547)
It seems the Presenter example is pretty broken (unless I'm just stupid). I don't see a `todo` variable defined anywhere, but it's used in several places. Perhaps `var model =` was just missed in a rename?

Also, the "toggle all" function uses a `filter` variable that's undefined AFAICT.

I'm not trying to knock the framework. I like what I see. Just a little hard to follow along when I'm not sure if the code is wrong, or my understanding of it is.

Re:Riot.js – A 1kb client-side MVP framework by sanderjd on Friday November 01, 2013 @11:22AM (#6654354)
I thought the same thing about the `store` variable in the `Todo` object. Not sure what we're missing.