It seems that there is a flaw with Backbone.js TodoMVC application -


this refers http://todomvc.com/architecture-examples/backbone/.

in app.appview render() method gets called many times when adding single todo.

if i'm not mistaking, having render() method being called many times bad. flaw in todomvc implementation?

in cases, you'd right.

in todo case, however, seems "add" event gets triggered. because there apparently isn't (e.g.) "sync" event since uses local storage , doesn't sync server.

in other words, looks isn't case in todo's specific case (due implementation), in cases registering handler on "all" events trigger rendering multiple times.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -